This is a discussion on Re: Please help with http -> https redirection - modssl ; If all you want to do is redirect "/" on your non-SSL Port to "/" on your SSL port, you could use a zero second redirect. e.g. put this in your index.html for the port 80 virtual host: And have ...
If all you want to do is redirect "/" on your non-SSL Port to "/" on
your SSL port, you could use a zero second redirect.
e.g. put this in your index.html for the port 80 virtual host:
And have your real content in a different document root for your port
443 virtual host.
The only drawback is that it's not feasible to redirect deep links (or
bookmarks) to the non-secure web server using this approach.
On 10/15/07, Bernard Barton
> In my main httpd.conf file, I have numerous include files which include
> virtual hosts like so:
> Include /usr/local/apache/conf/conf.d/devl00.conf
> Include /usr/local/apache/conf/conf.d/devl01.conf
> Include /usr/local/apache/conf/conf.d/devl02.conf
> So if I access http://devl02.mydomain.com/ then I see the virtual host
> in devl02.conf, etc. In the devl02.conf file, I have enabled SSL. I CAN
> access the secure site https://devl02.mydomain.com/. However, when I now
> access the non-secure site of http://devl02.mydomain.com, the main server
> web site is displayed, and not the virtual host. What I'm trying to do
> is a
> RedirectPermanent / https://cj-devl02.mydomain.net/
> But when I do this I get errors that I posted previously about cookies not
> being enabled. So I guess the questions is, having the "Include" statements
> above, and knowing that each include file like devl08.conf is a virtual host
> container with SSL enabled, how do I redirect from the port 80 version to
> the SSL enabled port 443 version like:
> http://cj-devl02.mydomain.net/ ------> https://cj-devl02.mydomain.net/
> FYI, I've tried including .conf files, and also pasting the contents of my
> .conf files into an email, but they evidently are rejected by the
> mailing list.
> __________________________________________________ ____________________
> Apache Interface to OpenSSL (mod_ssl) www.modssl.org
> User Support Mailing List email@example.com
> Automated List Manager firstname.lastname@example.org
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List email@example.com
Automated List Manager firstname.lastname@example.org