Senhores,
Tenho o sarg instalado no ubuntu 10.04 e todo mundo ta acessando os relatório gostaria de saber como colocar senha no relatório para somente o administrador acessar, é possivel?
[2] Enviado em 17/02/2012 - 18:51h Re: senha nos relatório do sarg [RESOLVIDO]
DocumentRoot /var/www/squid-reports
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/squid-reports>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
Amarildo sertorio
Fiz exatamente o que mandou, mas deu o seguinte erro:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, administrador@dominio.com.br and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Amarildo sertorio
Fiz exatamente o que mandou, mas deu o seguinte erro:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, administrador@dominio.com.br and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Não apresentou erros na hora de restartar o apache?
O caminho do DocumentRoot está correto? O diretório é esse mesmo?
Veja os logs do apache!
[6] Enviado em 22/02/2012 - 21:09h Re: senha nos relatório do sarg [RESOLVIDO]
Criei a pasta squid-reports dentro do diretório /var/www/ e alterei a a linha do parâmetro output_dir /var/lib/sarg para output_dir /var/www/squid-reports mesmo assim ocorreu o seguinte erro:
Not Found
The requested URL /html/sarg/ was not found on this server.
Estes são meus parâmetro:
root@proxi:/# vim /etc/apache2/sites-enabled/000-default
DocumentRoot /var/www/squid-reports/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/squid-reports/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
Criei a pasta squid-reports dentro do diretório /var/www/ e alterei a a linha do parâmetro output_dir /var/lib/sarg para output_dir /var/www/squid-reports mesmo assim ocorreu o seguinte erro:
Not Found
The requested URL /html/sarg/ was not found on this server.
Estes são meus parâmetro:
root@proxi:/# vim /etc/apache2/sites-enabled/000-default
DocumentRoot /var/www/squid-reports/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/squid-reports/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
root@proxi:/# vim /etc/sarg/sarg.conf
output_dir /var/www/html/sarg
root@proxi:/# vim /etc/apache2/sites-enabled/000-default
<VirtualHost *:80>
ServerAdmin administrador@dominio.com.br
DocumentRoot /var/www/html/sarg
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/sarg>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
olhei os logs e fala que o diretório não existe /var/www/html/sarg/html
no sarg.conf coloquei o seguinte dirtório output_dir /var/www/html/sarg
root@proxi:/# vim /etc/apache2/sites-enabled/000-default
DocumentRoot /var/www/html/sarg
<Directory /var/www/html/sarg>
<Directory "/var/www/html/sarg">
root@proxi:/# tail -30 /var/log/apache2/error.log
[Fri Feb 24 07:43:51 2012] [notice] Apache/2.2.14 (Ubuntu) mod_auth_kerb/5.3 mod_fcgid/2.3.4 mod_python/3.3.1 Python/2.6.5 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Feb 24 07:45:10 2012] [notice] caught SIGTERM, shutting down
[Fri Feb 24 07:45:11 2012] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads.
[Fri Feb 24 07:45:11 2012] [notice] mod_python: using mutex_directory /tmp
[Fri Feb 24 07:45:11 2012] [notice] Apache/2.2.14 (Ubuntu) mod_auth_kerb/5.3 mod_fcgid/2.3.4 mod_python/3.3.1 Python/2.6.5 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Feb 24 07:45:39 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/html
[Fri Feb 24 07:45:39 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/favicon.ico
[Fri Feb 24 07:45:39 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/favicon.ico
[Fri Feb 24 07:55:01 2012] [notice] caught SIGTERM, shutting down
[Fri Feb 24 07:55:02 2012] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads.
[Fri Feb 24 07:55:02 2012] [notice] mod_python: using mutex_directory /tmp
[Fri Feb 24 07:55:02 2012] [notice] Apache/2.2.14 (Ubuntu) mod_auth_kerb/5.3 mod_fcgid/2.3.4 mod_python/3.3.1 Python/2.6.5 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Feb 24 07:55:45 2012] [notice] caught SIGTERM, shutting down
[Fri Feb 24 07:55:46 2012] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads.
[Fri Feb 24 07:55:46 2012] [notice] mod_python: using mutex_directory /tmp
[Fri Feb 24 07:55:46 2012] [notice] Apache/2.2.14 (Ubuntu) mod_auth_kerb/5.3 mod_fcgid/2.3.4 mod_python/3.3.1 Python/2.6.5 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Feb 24 07:56:07 2012] [error] [client 10.0.0.50] File does not exist: /var/www/squid-reports/html
[Fri Feb 24 07:56:07 2012] [error] [client 10.0.0.50] File does not exist: /var/www/squid-reports/favicon.ico
[Fri Feb 24 07:56:07 2012] [error] [client 10.0.0.50] File does not exist: /var/www/squid-reports/favicon.ico
[Fri Feb 24 07:56:45 2012] [error] [client 10.0.0.134] File does not exist: /var/www/squid-reports/html
[Fri Feb 24 08:06:44 2012] [error] [client 10.0.0.50] File does not exist: /var/www/squid-reports/html
[Fri Feb 24 08:06:45 2012] [error] [client 10.0.0.50] File does not exist: /var/www/squid-reports/html
[Fri Feb 24 08:35:23 2012] [notice] caught SIGTERM, shutting down
[Fri Feb 24 08:35:24 2012] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads.
[Fri Feb 24 08:35:24 2012] [notice] mod_python: using mutex_directory /tmp
[Fri Feb 24 08:35:24 2012] [notice] Apache/2.2.14 (Ubuntu) mod_auth_kerb/5.3 mod_fcgid/2.3.4 mod_python/3.3.1 Python/2.6.5 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Feb 24 08:35:55 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/html
[Fri Feb 24 08:36:08 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/html
[Fri Feb 24 08:36:30 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/html
[Fri Feb 24 08:36:55 2012] [error] [client 10.0.0.134] File does not exist: /var/www/html/sarg/html
neste aquivo de log acima eu não entendi este caminho /var/www/html/sarg/html
o diretório que eu coloquei no sarg.conf e no apache2 foi /etc/apache2/sites-enabled/000-default foi /var/www/html/sarg/
[12] Enviado em 24/02/2012 - 09:14h Re: senha nos relatório do sarg [RESOLVIDO]
Me parece que dá esse erro na hora que vc está tentando acessar o relatório pelo browser.
[Fri Feb 24 08:35:55 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/html
[Fri Feb 24 08:36:08 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/html
[Fri Feb 24 08:36:30 2012] [error] [client 10.0.0.50] File does not exist: /var/www/html/sarg/html
[Fri Feb 24 08:36:55 2012] [error] [client 10.0.0.134] File does not exist: /var/www/html/sarg/html
Como vc está entrando? http://ipdoserver/html
Como foi alterado DocumentRoot no default, que é o seu raiz, o apache intende que vc está entrando no raiz que é "/var/www/html/sarg" e adicionando "html" na frente. Então basta vc digitar o ip ou o nome do server no navegador que ele já vai cair no raiz. http://ipdoserver