You could just use this module to automatically make the changes for you: http://forums.sentora.org/showthread.php?tid=2001
About he redirect:
This is the old way of doing things using a .htaccess file:
And I guess the new, preferred method in httpd-vhosts.conf is:
Although I am not sure how to do the preferred method properly...
About he redirect:
This is the old way of doing things using a .htaccess file:
Code:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
And I guess the new, preferred method in httpd-vhosts.conf is:
Code:
<VirtualHost *:80>
ServerName www.example.com
Redirect / https://www.example.com/
</VirtualHost>
<VirtualHost *:443>
ServerName www.example.com
# ... SSL configuration goes here
</VirtualHost>