I'm trying to find a way to deny access to some subdirectories of the root site unless previously pass the access control.
This is what I have in mind:
DocumentRoot is /usr/local/apache2/htdocs/
In the web root directory I have a login page that is checking users & passwords in a data base. Only if the information returned form the server is ok, the user will be able to get in the next subdirectory call "menu" (/usr/local/apache2/htdocs
I already create the program for users authentication.
A user accessing from the browser is typing in the url http://webserver/login.html
What I'm trying to deny is the direct access to the subdirectory "menu" http://webserver/menu/menu.html
without previously validate the password.
I read that it could be possible setting environments variables in the directories in the httpd.conf file¿?
Please note that I'm NOT trying to implement an access control using .htpasswd
Thank you for yours advices.