Try mod_rewrite:

<Directory /path/to/secure/directory>
   RewriteEngine on
   RewriteCond   %{HTTPS} !=on
   RewriteRule  ^/(.*) https://yourserver.com/$1
</Directory>

The above forces HTTPS on the specified directory.  It works for me ;)

-Carlos

Scott Brown wrote:

>
> --- Alex Moon <[EMAIL PROTECTED]> wrote:
> > Set the server up as secure - allowing insecure or secure
> > connection to the server but denying access to the the directory
> > you want as secure except through the secure server port 443
>
> You know, that makes remarkably good sense.
> Does it work? I've seen this question a dozen times here, and nobody
> ever said anything so simple.
>

I'm hoping it is... and I just need to twiddle the config a little.  It
seems like total overkill to define a completely separate host for SSL only.
(and yes, I'm aware of the need to have all content on a ssl session pass as
ssl...)

Someone must have a simple cookie cutter that fits this.
______________________________________________________________________
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
-----------------------------------------------------------------------
# ifconfig eth0.net "Carlos Ramirez" netmask 255.255.255.0 up
# route add -net smtp [EMAIL PROTECTED]
# route add -net http http://www.roses.bna.boeing.com/~ramirezc
 


Reply via email to