http and https

Paul Lemmons paul.lemmons at tmcaz.com
Fri Sep 21 19:03:41 UTC 2007


-------- Original Message  --------
Subject: http and https
From: edwardspl at ita.org.mo
To: For users of Fedora <fedora-list at redhat.com>
Date: 09/21/2007 10:21 AM

> Hello Paul,
> 
> Would you mind to post your config sample here ?
> 
> Thanks !
> 
> Edward.
> 
> Paul Lemmons wrote:
> 
>> I think I am doing what you are asking for. We have an "http" site
>> that immediately forward to the "https" site. Is that what you are
>> looking for? If so, let me know and I will share.
>>
>> -------- Original Message --------
>> Subject: http and https
>> From: edwardspl at ita.org.mo
>> To: Apache <users at httpd.apache.org>
>> Cc: "fedora-list at redhat.com" <fedora-list at redhat.com>
>> Date: 09/21/2007 08:29 AM
>>
>>> Dear All,
>>>
>>> For virtual host config,
>>> Is there a sample for convert http to https ?
>>>
>>> Thanks !
>>>
>>> Edward.
>>>
> 

The whole thing is fairly large. Probably too large to post here. Here
are the pertinent virtual host entries:

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin you.me at domain.com
    ServerName  www.domain.com
    ServerAlias www.domain.net
    ServerAlias www.domain.org
    ErrorLog  /var/log/httpd/www_error_log
    CustomLog /var/log/httpd/www_access_log combined
    Redirect permanent / https://www.domain.com/
</VirtualHost>


Note that the root to the site (/) is redirected to
https://www.domain.com/. This hasthe effect of redirecting *everything*
from the http: site to the https: site.

Of course, for this to be effective the https: site must exist.

<VirtualHost *:443>
   DocumentRoot /my/doc-root/for/https/
   ServerName  www.domain.com
   ServerAlias www.domain.net
   ServerAlias www.domain.org

   ServerAdmin you.me at domain.com
    ...
    ...
    ...
</VirtualHost>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3257 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070921/e4732742/attachment-0001.bin>


More information about the fedora-list mailing list