Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Force users to use SSL for a specific dir |
|
Author |
|
pjdelsh007
Joined: 07 Mar 2008 Posts: 2
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3094 Location: Hilversum, NL, EU
|
Posted: Tue 11 Mar '08 23:46 Post subject: |
|
|
An possible solution is to use mod rewrite for that domain when the condtion is http://www.domain.com/directory1
Should also possible to make a rule in mod_security.
Steffen |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 12 Mar '08 10:58 Post subject: |
|
|
Code: |
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com\/inside$ [NC]
RewriteRule ^(.*)$ https://www.domain.com/inside$1 [R=301,L]
|
This forces SSL only in the older inside |
|
Back to top |
|
|
|
|
|
|