Mod Rewrite - directing HTTP/HTTPS traffic to the appropriate virtual hosts
- by kce
I have an Apache2 web server (v. 2.2.16) running on Debian hosting three virtual hosts. The first two hosts are HTTP only (server1 and server2). The last host is HTTPS only (server3). My virtual host configuration files can be found at pastebin. I would like to use mod rewrite to get the following behavior:
Any request for http://server3 is…