Re: http and https

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

 



Paul Lemmons wrote:

>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>
>  
>
Hello Pual,

1, As the following is good for work also ?

Listen 80
Listen 443

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>

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

2, What means by the permanent of redirect function ?

Thanks !

Edward.

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