: I'm pretty sure you can do this with straight mod_rewrite rules (using a rewriteCond on HTTP_HOST), but from a configuration-management standpoint it may be easier to take a different tack:
I'm pretty sure you can do this with straight mod_rewrite rules (using a rewriteCond on HTTP_HOST), but from a configuration-management standpoint it may be easier to take a different tack: I assume you're running each SSL site on its own IP address (because SNI support isn't quite universal yet, though getting close). In this case I would go for the easy solution and set up virtual hosts for each IP (1.2.3.4:80) that forward to the SSL version exactly as you have above.
If you're relying on SNI (everyone is on one IP) you can do the same thing with a NameVirtualHost on port 80...
More posts by @Angela700
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.