Restrict access to apache2 web root but allow it to subfolders
- by razor7
I need to restrict access by password to my web root apache test server (ie http://localhost) but allow access to subfolders (ie: http://localhost/testsite)
I did create the .htpasswd and .htaccess, and put the .htaccess to web root (http://localhost) so when trying to access web root, it asks for user and pass, but so does in subfolders (ie: trying to access http://localhost/testite)
I want to be asked for password on web root, but not on subfolders.
Is that possible?