htaccess file content;
#RewriteEngine On
#ErrorDocument 404 ./404.php
AuthType Basic
AuthName "Authentication Required"
AuthUserFile "/etc/htpasswd/.htpasswd"
Require valid-user
I am trying to accesable sub-folder (and pages under subfolder), and I added a .htaccess file into my subfolder and its content like that;
Satisfy Any
Allow from all
Also in httpd.conf file I have;
<Directory /var/www/html/mysub/>
AllowOverride All
</Directory>
Now currently when I try to access folders, they have basic auth. and it is okay, but when I try to access 'mysub' folder, it gives 500 Internal server error. why it is happenning ? Thank you
Here is how I solved it;
create a new .htaccess file in that subdirectory that contains this:
Satisfy any
To do this in the main Apache configuration using :
<Directory /var/www/mysite/mysubfolder>
Satisfy any
</Directory>
Thanks..