Last active
August 29, 2015 14:01
-
-
Save ksze/c024122f350a80671ab1 to your computer and use it in GitHub Desktop.
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
<VirtualHost *:80> | |
ServerName www.my-site.com | |
RewriteEngine On | |
RewriteOptions inherit | |
# Hide the admin interface from the public internet. Make it only accessible from the company office | |
RewriteCond ${REMOTE_ADDR} !=153.64.172.11 | |
RewriteRule ^/admin(/.*)? - [L,R=404] | |
RewriteRule ^/(.*)$ http://172.20.11.13/$1 [L,P] | |
ProxyPassReverse / http://172.20.11.13/ | |
ProxyPreserveHost on | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment