Created
April 14, 2011 19:47
-
-
Save dudemeister/920326 to your computer and use it in GitHub Desktop.
This file contains 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> | |
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