-------- 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