Skip to content

Instantly share code, notes, and snippets.

Last active Dec 15, 2015
What would you like to do?
Sample Apache2 configuration.
<VirtualHost *:80>
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
<Proxy *>
Order deny,allow
Allow from all
Allow from localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment