Skip to content

Instantly share code, notes, and snippets.

@tfanme
Created March 25, 2013 07:44
Show Gist options
  • Select an option

  • Save tfanme/5235502 to your computer and use it in GitHub Desktop.

Select an option

Save tfanme/5235502 to your computer and use it in GitHub Desktop.
Apache proxy mode virtual host configuration
<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