Created
October 9, 2015 08:47
-
-
Save algotrader-dotcom/2174d58be06d048200b8 to your computer and use it in GitHub Desktop.
Apache reverse proxy basic authentication exclude IP, URI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
SetEnvIfNoCase Request_URI "^/_ui" noauth | |
<Proxy *> | |
AuthType Basic | |
AuthName "Please Log In" | |
AuthUserFile /etc/httpd/.htpasswd | |
Require valid-user | |
Order deny,allow | |
Deny from all | |
Allow from 127.0.0.1, IP1, IP2, IP3 # List IPs | |
Allow from 58.64.198. # Range IP | |
Allow from env=noauth # Not authen for url start /_ui/* | |
Satisfy any | |
</Proxy> | |
.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment