Hello,
I'm new here, and after trying by myself, I'm looking for some help ...
I have installed webalizer, on my CentOS 6 server. Root path for webalizer is /var/www/usage/
It's working, but after putting a .htaccess in /var/www/usage/ and the appropriate .htpasswd in /var/www/html/auth/ there is no password asked.
Here are my files :
.htacess :
AuthName “Veuillez vous identifier” AuthType Basic AuthUserFile ”/var/www/html/auth/.htpasswd”
.htpasswd :
carmelo:myencryptedpassword(with htpasswd)
Can you please help me ?
Thanks,
Carmelo
Check that you have something like this in the Apache conf for that directory:
<Directory "/var/www/sample.com/my-protected-folder"> AllowOverride All </Directory>
Override there means that .htpasswd file can override the main Apache conf.
It does not really need to be "AllowOverride All", only some options are needed. But if you have "AllowOverride None", then .htpassword will have no effect at all.
- Jussi
On 13.2.2013 17.18, Carmelo Ingrao wrote:
Hello,
I'm new here, and after trying by myself, I'm looking for some help ...
I have installed webalizer, on my CentOS 6 server. Root path for webalizer is /var/www/usage/
It's working, but after putting a .htaccess in /var/www/usage/ and the appropriate .htpasswd in /var/www/html/auth/ there is no password asked.
Here are my files :
.htacess :
AuthName “Veuillez vous identifier” AuthType Basic AuthUserFile ”/var/www/html/auth/.htpasswd”
.htpasswd :
carmelo:myencryptedpassword(with htpasswd)
Can you please help me ?
Thanks,
Carmelo _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Le 13 févr. 2013 à 16:29, Jussi Hirvi a écrit :
Check that you have something like this in the Apache conf for that directory:
<Directory "/var/www/sample.com/my-protected-folder"> AllowOverride All
</Directory>
Override there means that .htpasswd file can override the main Apache conf.
It does not really need to be "AllowOverride All", only some options are needed. But if you have "AllowOverride None", then .htpassword will have no effect at all.
Thanks it worked ! I have this now in the webalizer.conf in /etc/http/conf.d/
# # This configuration file maps the webalizer log analysis # results (generated daily) into the URL space. By default # these results are only accessible from the local host. # Alias /usage /var/www/usage
<Location /usage> Order deny,allow # Deny from all Allow from 127.0.0.1 Allow from ::1 # Allow from .example.com AllowOverride All </Location>
And without password I can't access to the webalizer page :)
Thanks a lot
Carmelo