Forum Moderators: phranque

Message Too Old, No Replies

Virtual Hosts, SSL

same host, 2 ports, one SSL

         

MoBarger

3:51 pm on Nov 19, 2003 (gmt 0)

10+ Year Member



Hi --
I have a non-SSL host enabled that will forward all requests to its SSL port of the same host name. I need to ensure that all requests are through SSL and not through a standard HTTP port. Is rewrite my best option?

jdMorgan

6:36 pm on Nov 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use RewriteCond to check %{SERVER_PORT} and either reject incorrect requests or forward them to the correct port.

As to whether that's the best way to do it, I'm not sure. But it would probably work well.

Jim

<edit> Thread merged/continued here [webmasterworld.com]. </edit>