Last active
December 15, 2015 11:38
-
-
Save gam-phon/5254069 to your computer and use it in GitHub Desktop.
Sample Apache2 configuration.
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.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