Ok.
Anyway, I thought I would post my solution to the problem here.
First I added
Quote:
|
Options +SymLinksIfOwnerMatch
|
to the virtual host. This is needed for the mod_rewrite to work.
(Adding this is optional when creating a site in Ispconfig but there doesn't seem to be a way of changing it later. Fortunately I'm not afraid to type some SQL by hand

)
Then in the document root I added a .htaccess file with a rewrite rule to redirect any non-SSL request to the root of the https site.
The .htaccess file looks like this:
Quote:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME} [R=301,L]
|
This will redirect
http://myserver.com/something/ to
https://myserver.com.
I do this because my target directories ( /something/ in this example) requires authenticatiion and this seems to mess things up a bit so rewriting to the root is the clean way of doing it.
If you to redirect to
https://myserver.com/something/ then use the following:
Quote:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
|
I hope this might be of some use to someone in the future.
//Erk
Recent comments
9 hours 14 min ago
10 hours 13 min ago
14 hours 50 sec ago
15 hours 14 min ago
18 hours 51 min ago
1 day 2 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 3 hours ago
2 days 5 hours ago