httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodman" <rod...@thefrowerts.com>
Subject Re: [users@httpd] mod_ssl question
Date Thu, 29 Mar 2007 20:25:19 GMT
Ahhhh, that makes so much more sense.  I didn't even think to have two 
virtual hosts of the same site but have one of them SSL while the other is 
standard port 80.  Redirecting should be easy then.

Thanks Joshua! I appreciate the help!  I'll setup it up tonight.

Rodman
----- Original Message ----- 
From: "Joshua Slive" <joshua@slive.ca>
To: <users@httpd.apache.org>
Sent: Thursday, March 29, 2007 2:46 PM
Subject: Re: [users@httpd] mod_ssl question


> On 3/29/07, Rodman <rodman@thefrowerts.com> wrote:
>> Great!!  Now I have to figure out how to do it.  You wouldn't happen to 
>> have
>> a link handy with some basic instructions on how to secure just a 
>> directory
>> instead of an entire site?  I'm guessing that I would have to use some 
>> sort
>> of SSL <Directory></Directory> container inside my <Virtual> container

>> but
>> this is just a guess.
>>
>> I'll check with godaddy and see what I can dig up for cheaper
>> certificates...
>
> You're thinking about this from the wrong perspective.
>
> Once you have SSL, you will have two separate websites: one with ssl
> using https on port 443, and one without ssl using http on port 80.
> Each should have it's own <VirtualHost> block in your config.
>
> Then if you want certain content to be available in only one vhost or
> the other, you put directives in these <VirtualHost>s to make it
> happen.  For example, if you want the mail directory to be available
> only on the ssl host, then redirect requests for /mail under the
> non-ssl host over to the ssl host:
>
> <VirtualHost *:80>
> ...
> Redirect /mail https://mysite.example.com/mail
> ...
> </VirtualHost>
>
> You can also use the SSLRequireSSL directive in a <Directory> section,
> but it isn't strictly necessary.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message