Created
March 25, 2013 07:44
-
-
Save tfanme/5235502 to your computer and use it in GitHub Desktop.
Apache proxy mode virtual host configuration
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 *:80> | |
| ServerAdmin admin@gmail.com | |
| ServerName foobar.com | |
| ServerAlias www.foobar.com | |
| ProxyRequests off | |
| <Proxy *> | |
| Order deny,allow | |
| Allow from all | |
| </Proxy> | |
| <Location /> | |
| ProxyPass http://localhost:11342/ | |
| ProxyPassReverse http://localhost:11342/ | |
| </Location> | |
| DocumentRoot /srv/www/foobar.com/public_html/weixin | |
| <Directory "/srv/www/foobar.com/public_html/weixin"> | |
| AllowOverride All | |
| </Directory> | |
| ErrorLog /srv/www/foobar.com/logs/error.log | |
| CustomLog /srv/www/foobar.com/logs/access.log combined | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment