0

I want to use the apache server as web server and reverse proxy to several web-services. But i also want use apache as an authentication gateway. I know how to protect specific directories with .htaccess or <Directory>. And i read how to protect specific VirtualHost with <Location>.

But is there a way to protect evrey access with same configuration - some kind of global basic authentication?

3
  • 2
    You can use the Include directive to include the same config into every VirtualHost
    – HBruijn
    Aug 10, 2016 at 13:09
  • and whats about all hosted directories?
    – dermoritz
    Aug 10, 2016 at 15:17
  • If you can't afford to completely disable support for .htaccess files remove AuthConfig from what you allow in them by mdoifying your AllowOverride settings
    – HBruijn
    Aug 10, 2016 at 15:25

0

You must log in to answer this question.

Browse other questions tagged .