Created
March 29, 2014 16:57
-
-
Save anonymous/9857969 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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