Skip to content

Instantly share code, notes, and snippets.

Created March 29, 2014 16:57
Show Gist options
  • Save anonymous/9857969 to your computer and use it in GitHub Desktop.
Save anonymous/9857969 to your computer and use it in GitHub Desktop.
<VirtualHost 1.1.1.1:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /home/www/example.com/web/web/version_1
## Logs
CustomLog /home/www/example.com/log/apache/access.log combined env=!no_log
ErrorLog /home/www/example.com/log/apache/error.log
## / Logs
RewriteEngine on
## Redirection vers www
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*) http://www.example.com [QSA,L,R=301]
## / Redirection vers www
# ProxyVia On
# ProxyRequests Off
ProxyPreserveHost on
# <Proxy *>
# Order deny,allow
# Allow from all
# </Proxy>
# ProxyPass / http://2.2.2.2
# ProxyPassReverse / http://2.2.2.2
ProxyPass / http://example.com
ProxyPassReverse / http://example.com
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment