Skip to content

Instantly share code, notes, and snippets.

@dudemeister
Created April 14, 2011 19:47
Show Gist options
  • Save dudemeister/920326 to your computer and use it in GitHub Desktop.
Save dudemeister/920326 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAlias *.domain.com
RewriteEngine on
Rewritemap domaintoport prg:/home/user/rewrite_map/rewrite_map
# RewriteCond %{HTTP_HOST} (.*)
RewriteRule (.*) http://localhost:${domaintoport:%{HTTP_HOST}}/$1 [P]
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
# ProxyPreserveHost On
# ProxyPass / http://localhost:4000/
# ProxyPassReverse / http://localhost:4000/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment