All pastes #471329 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-04 21:00 UTC
rendered paste body
# BOTH 
# NEW vhost
<VirtualHost *:80>
  ServerName new.example.com
  ServerAlias old.example.com

  ErrorLog logs/new_errors_log
  CustomLog logs/new_log combined

  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteRule ^/(.*) https://new.example.com/$1 [L,R]
</VirtualHost>

# NEW svhost
<VirtualHost _default_:443>
  ServerName new.example.com
  ServerAlias newsparks.net

  ErrorLog /usr/local/apache2/logs/error_log
  CustomLog /usr/local/apache2/logs/access_log combined

  #   SSL Engine Switch:
  #   Enable/Disable SSL for this virtual host.
  SSLEngine on

  #[SNIP]
  #SSL STUFF......
  #[/SNIP]
</VirtualHost>