Protect PHPMyAdmin and index.html

Schouwek

New member
Joined
May 23, 2013
Messages
2
Hello,

I have protected /var/www/html with an .htaccess and .htpasswd file.
When I visit <serverIP> everything works correct. But when I go to the server hostname, the .htaccess file and thus the .htpasswd file isn't being used.

How can I fix this?

Regards,
 
You should look through apache configs and see if the virtualhost for /var/www/html has allowoverride none which would block it.
 
You should look through apache configs and see if the virtualhost for /var/www/html has allowoverride none which would block it.

Too bad, the AllowOverride setting is "all". Else the .htaccess won't work if I try to reach it on IP address as well.
Maybe this info is needed:
Apache 2.4 & PHP5.4 are installed on the server.
 
Back
Top