ricardohd
(usa Debian)
Enviado em 17/02/2012 - 13:24h
Certo..
Refiz o procedimento e voltou a dar erro que mencionei antes:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost 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.
Apache/2.2.16 (Debian) Server at 192.168.1.1 Port 80
Vou postar aqui toda a sequencia que fiz.
1 - Dentro de /var/lib/sarg criei o arquivo .htaccess com o nano e coloquei o conteudo abaixo dentro dele:
AuthType Basic
AuthName "Acesso Restrito!"
AuthUserFile /var/lib/sarg/.htaccess
require valid-user
2 - Informei senha ao user admin
sudo htpasswd -c /var/lib/sarg/.htaccess admin
3 - Coloquei o conteudo abaixo dentro do arquivo de configuração do apache. (/etc/apache2/httpd.conf)
ServerName localhost
# RELATORIO SARG
<Directory /var/www/sarg>
Options -Indexes FollowSymLinks Includes
AllowOverride AuthConfig
# Atenticacao
AuthName "ACESSO"
AuthType Basic
AuthUserFile /var/lib/sarg/.htaccess
require valid-user
Order allow,deny
Allow from all
</Directory>
O que pode estar ocorrendo ?