Apache Location
To only allow requests from a specific IP to a location, use
1 2 3 4 5 6 7 8 |
<LocationMatch "^/internal.*"> Require ip 59.92.71.53 51.38.246.115 </LocationMatch> <Location "/internal/health"> Require ip 59.92.71.53 51.38.246.115 </Location> |
Add custom headers based on location
1 2 3 4 5 6 |
<Location "/internal/stream"> Require ip 59.92.71.53 51.38.246.115 Header edit Location ^/browse /internal/stream/browse AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html text/plain text/xml Substitute "s#\"/(fields|browse|machine|entries)#\"/internal/stream/$1#i" </Location> |