Unsolved Apache config problem
-
I have a problem that I don't know how to solve.
When I use
Require valid-user
in the conf file (to enable Apaches authentication) I also inadvertently gives access to every type of file including.htaccess
.<VirtualHost *:443> <Location /> AuthType .... ........ Require valid-user </Location> </VirtualHost>
Access has been denied earlier in the conf file with:
<FilesMatch "^\.ht"> Require all denied </FilesMatch>
How can I get Apache to require a valid user but still honor it's prior access control?
-
Un-sober Jared has no idea. Sorry.
-
@Pete-S So sorry you are going through this issue. When trying to config the Apache are you in root user? and If you are you need to go to the root file system where the Apache is located and see if it will let you in that way. That way you can make all the necessary adjustment to your specifications or configurations.
-
Depends on the Apache version, what version do you have 2.2 or 2.4?