http and https

edwardspl at ita.org.mo edwardspl at ita.org.mo
Sat Sep 22 05:06:51 UTC 2007


edwardspl at ita.org.mo wrote:

>Paul Lemmons wrote:
>
>  
>
>>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>
>> 
>>
>>    
>>
>Hello Pual,
>
>1, As the following is good for work also ?
>
>Listen 80
>Listen 443
>
>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>
>
><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>
>
>2, What means by the permanent of redirect function ?
>
>Thanks !
>
>Edward.
>
>  
>
Hello,

If there is only one IP address, then the config is okay ?

Thanks !

Edward.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20070922/7d15fedd/attachment-0001.html 


More information about the users mailing list