My experiences over the past couple years using Apache's
mod_rewrite have been invaluable for solving problems like
this.  This is a very powerful, flexible tool that you can 
easily turn on/off as needed, adjust it to fit any 
directory/file location, file type, environment variable 
or other condition.  It has been even more useful since
having to SSL-enable my site (either in part or entirely) 
this year.

Steve Luzzi


> 
> Martin Kong wrote:
> > 
> > But onces user is in SSL mode, the whole site will
> > be in SSL mode since most of the links are based on document root
> > instead of full qualified.
> > 
> > Is there a way I can configure Apache (Apache 1.3.17 on Linux) so that
> > it will automatically switch to http when accessing these other pages on
> > the site?
> 
> This is not how to use SSL. You should think of an SSL virtualhost as a
> separate server with its own document root that cannot be reached from
> plain HTTP (and vice-versa). So all links between the SSL and HTTP parts
> of your site should be absolute (e.g. so they look like
> https://secure.mydomain.com/ and http://www.mydomain.com/). Trying to
> mix SSL and plain HTTP content always leads to tears.
> 
> Regards,
> 
> Owen Boyle.
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> User Support Mailing List                      [EMAIL PROTECTED]
> Automated List Manager                            [EMAIL PROTECTED]
> 

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

Reply via email to