Re: apache SSL help

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: alex@crackpot.org
Date:  
To: plug-discuss
Subject: Re: apache SSL help
Quoting Craig White <>:

> On Tue, 2006-10-17 at 10:56 -0500, wrote:
>> Quoting :
>>
>> > You need 2 virtual hosts. One for normal http, and the other for
>> > https. I just wrote these samples off the top of my head, so you
>> > might need to check the syntax in the docs, but this setup will work.
>> >
>> > NameVirtualHost 0.0.0.0
>> >
>> > <VirtualHost 0.0.0.0:80>
>> >    ServerName cms.tobyhouse.com
>> >    Redirect / https://cms.tobyhouse.com/
>> > </VirtualHost>

>> >
>> > <VirtualHost 0.0.0.0:443>
>> >    ServerName cms.tobyhouse.com
>> >    SSLRequireSSL
>> >    # other directives
>> > </VirtualHost>

>>
>> Sorry, Craig, I should have read your post a little closer.
>> SSLRequireSSL need to be in a <Directory> like you have it, not in the
>> <VirtualHost>. How to relax the SSLRequireSSL in a subdirectory? I
>> don't know that one, but I'll keep looking.
> ----
> actually, the killer seems to be the Redirect Permanent /drupal line
> because even if I just do a 'wget
> http://localhost/drupal/modules/civicrm/extern/soap.php' the Redirect is
> in play and it shifts automatically to an https request
>


If you'd like to redirect all requests to https, except that
directory, I think you can use RedirectMatch, and write a regexp to
exclude the /drupal directory.
http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch

Does that sound useful?
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss