you could also setup your ssl virtualhost with an different DocumentRoot, only 
available by https (port 443) and leave your https pages there.

On Mon, Jan 14, 2002 at 11:52:06AM -0000, Simon Ritchie wrote:
> I guess that you want to refuse access to a page by HTTP, ftp etc, so that
> it can only be accessed via HTTPS.  Is that correct?  You can do that with
> the apache rewrite mechanism.  The rewrite guide shows how.
> 
> Simon
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Zhang, Li
> > Sent: 07 January 2002 19:37
> > To: '[EMAIL PROTECTED]'
> > Subject: force to use SSL when accessing certain directory/url?
> >
> >
> > Hi mod-ssl guru:
> >
> > It is easy to do this in IIS but for Apache/mod_ssl how can I force the
> > browser to use https when a user is trying to access a url via http? I'm
> > using Apache 1.3.22 + mod_ssl.
> >
> > For example:
> >
> > the user is trying to access: http://myhost/secure/index.html
> > The server forces to use https://myhost/secure/index.html
> >
> > /secure is pointing to c:/mysecureweb
> >
> > I appreciate if you can give me a sample config file.
> >
> > Thanks.
> >
> > Li
> > ______________________________________________________________________
> > 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]

-- 
Glen S Mehn
Lead Systems Administrator              SquareTrade, Inc
[EMAIL PROTECTED]    Building Trust in Transactions (sm)
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to