Re: http and https

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-------- Original Message  --------
Subject: http and https
From: edwardspl@xxxxxxxxxx
To: For users of Fedora <fedora-list@xxxxxxxxxx>
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@xxxxxxxxxx
>> To: Apache <users@xxxxxxxxxxxxxxxx>
>> Cc: "fedora-list@xxxxxxxxxx" <fedora-list@xxxxxxxxxx>
>> 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@xxxxxxxxxx
    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@xxxxxxxxxx
    ...
    ...
    ...
</VirtualHost>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux