2014年7月3日 星期四

Apache Virtual Host設定




l編輯/etc/httpd/conf/httpd.conf
NameVirtualHost *:80
<VirtualHost *:80>
    ServerAdmin dar@twnic.net.tw
    DocumentRoot "/var/www/html/demov6"
    ServerName www.ipv6day.tw
    ServerAlias v4.ipv6day.tw
    ServerAlias ds.ipv6day.tw
    ServerAlias demv6.ipv6po.tw
    ServerAlias 2001:f10:7001:6:20c:29ff:fe74:df51
    ErrorLog "logs/demov6.ipv6po.tw-error_log"
    CustomLog "logs/demov6.ipv6po.tw-access_log" common
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin dar@twnic.net.tw
    DocumentRoot "/var/www/html/ds"
    ServerName ds.demo.v6class.tw
    ServerAlias v4.demo.v6class.tw
    ServerAlias v6.demo.v6class.tw
    ErrorLog "logs/ds.demo.v6class.tw-error_log"
    CustomLog "logs/ds.demo.v6class.tw-access_log" common

</VirtualHost>

沒有留言:

張貼留言