All pastes #771893 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-13 10:13 UTC
rendered paste body
NameVirtualHost *:80

<Virtualhost *:80>
servername www.example.com
Documentroot /var/www/html

<Location /svn>
Redirect / https://ssl.example.com/svn/
</Location>

</VirtualHost>


<Virtualhost *:80>
servername svn.example.com
Redirect / https://ssl.example.com/svn/
</VirtualHost>


<VirtualHost _default_:443>
  
  # Only one virtual host allowed on this port, because name-based
  # virtual hosting doesn't work with SSL
  ServerName ssl.example.com
  DocumentRoot /var/www/html

  SSLEngine On

</VirtualHost>