Skip to content

Instantly share code, notes, and snippets.

@gam-phon
Last active Dec 15, 2015
Embed
What would you like to do?
Sample Apache2 configuration.
<VirtualHost *:80>
ServerName www.yr.com
ServerAdmin webmaster@yr.com
DocumentRoot /home/yaser/site-name/www
RewriteEngine on
ProxyPreserveHost On
RewriteCond $1 !^/(img|css|js|robots\.txt|media|static|s)/
RewriteRule ^(.*) http://localhost:8008$1 [P]
<Location /admin>
Order Allow,Deny
Allow from localhost
Allow from 10.10.12.20
</Location>
<Proxy *>
Order deny,allow
Allow from all
Allow from localhost
</Proxy>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment