On Tue, Jul 13, 1999, [EMAIL PROTECTED] wrote:

> I'm using mod_ssl successfully but want my Website to use either https or
> httpd automatically dependent on the relative URL used.
> 
> I have checked the FAQ's for mod_ssl which suggests using a suffix i.e.
> URL:SSL or URL:NOSSL in conjunction with mod-rewrite.
> 
> Trouble is.... mod_rewrite seems unable to function if my server is already
> running as https.
> 
> Transitions work fine from http but fail immediatley if I'm running https.
> 
> I have tried putting mod_rewrite first and last in the list of modules
> using add_module at configure time with no success.
> 
> I attach my httpd.conf to assist.
> 
> I am running Apache 1.3.6, mod_ssl_2.3.5_1.3.6 & mod_rewrite distributed
> with apache 1.3.6.
> 
> Operating system is SCO Open Server using gcc compiler.

It _DOES_ work when it's configured correctly. Check where your RewriteRule's
are placed. They have to be either outside of any <VirtualHost> and then you
need a "RewriteOptions inherit" inside the <VirtualHost> for HTTPS or you need
two rulesets - inside each <VirtualHost>.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to