Skip to content

Instantly share code, notes, and snippets.

@burke
Created February 22, 2009 07:47
Show Gist options
  • Save burke/68399 to your computer and use it in GitHub Desktop.
Save burke/68399 to your computer and use it in GitHub Desktop.
---
standard: |
<VirtualHost *>
ServerName #{@domain}
ServerAlias www.#{@domain}
DocumentRoot /srv/http#{@location}#{@domain}/htdocs
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\\.#{@domain.gsub('.','\.')}
RewriteRule (.*) http://#{@domain}$1 [R=301,L]
#{@custom}
</VirtualHost>
alias: |
<VirtualHost *>
ServerName #{@domain}
ServerAlias www.#{@domain}
RedirectPermanent / http://#{@redirect}/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment