Position:Home > DomainName > CDN-Usage of Chinese Domain Names > Text

Configuration of Virtual Host
 

    Virtual host is classified as IP-based virtual host and Name-based virtual host.

    For those IP-based virtual hosts, it is only needed to allocate a ServerName (in Punycode) on httpd.conf, for example:



ServerAdminsysadmin@xn--rssy03ha.cn
DocumentRoot/usr/local/apache/htdocs
ServerNamexn--rssy03ha.cn
ErrorLog/usr/local/apache/logs/error_log
CustomLog/usr/local/apache/logs/access_log common

    For those Name-based virtual hosts, since multiple hosts share one IP address, it is needed to do the following configuration on httpd.conf:

    NameVirtualHost 159.226.7.159

ServerAdminsysadmin@xn--rssy03ha.cn
DocumentRoot/usr/local/apache/htdocs
ServerNamexn--rssy03ha.cn
ErrorLog/usr/local/apache/logs/error_log
CustomLog/usr/local/apache/logs/access_log common



[ 2003/11/5 ]