View Full Version : htaccess and AllowOverride

03-16-2010, 05:18 AM

I know that .htaccess won't work when AllowOverride = None, but I'm just having trouble why one directory in my web server can use htaccess. I want to create a login prompt using htaccess and htpasswd.

sample 1 (this one is working):

this sample works and propely show and ask for user authentication.

path : /usr/local/apache/htdocs/mis/folder_1/

AuthType Basic
AuthName "Restricted Access"
AuthUserFile /usr/local/apache/htdocs/mis/folder_1/.htpasswd
Require user testuser

sample 2:

so i created another folder under the mis and named it folder_2, copied the .htaccess and .htpasswd from folder_1 but every time i visit the site it does not show the login prompt.

any idea why this is happening?


ok nvm, i found out by browsing the .conf, the previous user assigned the directory.

<Directory "/usr/local/apache/htdocs/mis/folder_1">
Options Indexes FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all

oh well, now its gonna be a problem since if i add my folder i would have to restart the server which most likely will not be allowed :(