You can use mod_rewrite.

Example:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/secureSection.*
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://www.mydomain.com/$1 [R]

-Carlos
 
 
 

Don Smith wrote:

Hi all, new to this ssl thing.
I am pretty familiar with regular Apache, but this ssl stuff is greek to
me, but I'm getting it slowly!  :-)
Tried Apache-ssl and got it working, wasn't very easy.
So, here I am with Apache with mod-ssl, much easier to config, etc!  :-)
OK, here's my question.
I would like to restrict a portion of our web site to ONLY allow https
connections, NOT http.
And have the rest of the site to ONLY allow http, NOT https.
Currently I can get to everywhere with both http and https on my test system.
I apologize if this question has been asked before, I did search the modssl
site, Deja, etc.
I'm guessing I have to use Virtual Host in some way?
Thanks
Don

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

-- 
-----------------------------------------------------------------------
 Carlos Ramirez  +  Boeing  +  Reusable Space Systems  +  714.372.4181
-----------------------------------------------------------------------
    - My software never has bugs. It just develops random features
 


Reply via email to