Created
February 22, 2009 07:47
-
-
Save burke/68399 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
--- | |
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