Skip to content

Instantly share code, notes, and snippets.

@kennethkalmer
Created April 29, 2009 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennethkalmer/104046 to your computer and use it in GitHub Desktop.
Save kennethkalmer/104046 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName foo.com
ServerAlias *.foo.com
# REST OF CONFIG
RailsAllowModRewrite on
RewriteCond %{HTTP_HOST} ^foo\.com [NC]
RewriteRule ^/(.*)$ http://www.foo.com/$1
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment