Created
August 9, 2011 01:52
-
-
Save eleddy/1133260 to your computer and use it in GitHub Desktop.
example config for site stuff
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
<IfModule mod_disk_cache.c> | |
# cache cleaning is done by htcacheclean, which can be configured in | |
# /etc/default/apache2 | |
# | |
# For further information, see the comments in that file, | |
# /usr/share/doc/apache2.2-common/README.Debian, and the htcacheclean(8) | |
# man page. | |
# This path must be the same as the one in /etc/default/apache2 | |
# note: to make things even faster, set noatime on these files | |
CacheRoot /var/cache/apache2/mod_disk_cache | |
# This will also cache local documents. It usually makes more sense to | |
# put this into the configuration for just one virtual host. | |
CacheEnable disk / | |
CacheDirLevels 5 | |
CacheDirLength 3 | |
CacheIgnoreNoLastMod On | |
</IfModule> | |
## 000-mysite.conf | |
## | |
<VirtualHost *:80> | |
ServerAdmin support@mysite.com | |
<Proxy *> | |
Allow from %{SERVER_NAME} | |
</Proxy> | |
ProxyPreserveHost On | |
#RewriteLog "/srv/digiyoubuildout/var/log/rewrite.log" | |
#RewriteLogLevel 3 | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www\.mysite\.com | |
RewriteRule ^(.*)$ http://mysitet.com/$1 [R=permanent,L] | |
RewriteCond %{HTTP_HOST} ^([^.]+)\.staging\.mysite\.com | |
RewriteRule ^/(.*)$ http://127.0.0.1:6060/VirtualHostBase/http/%1.staging.mysite.com:80/%1/VirtualHostRoot/$1 [L,P] | |
RewriteCond %{HTTP_HOST} ^([^.]+)\.mysite\.com | |
RewriteRule ^/(.*)$ http://127.0.0.1:9090/VirtualHostBase/http/%1.mysite.com:80/%1/VirtualHostRoot/$1 [L,P] | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment