Member Support ~ Linux Admin User Guide ~ Web Server Virtual Domain

1. Create document Root directory for Homepage store say: /home/username/html

2. Create Log directory for web access log. i.e. /home/username/logs

3. Append the following text into /opt/httpd/conf/httpd.conf as below:
<VirtualHost www.domain.com>
ServerAdmin webmaster@domain.com
DocumentRoot /home/username/html
ServerName www.domain.com
ServerAlias domain.com
ErrorLog /home/username/logs/error.log
TransferLog /home/username/logs/access.log
</VirtualHost>

Where:
domain.com : The domain name of Virtual Web Site.

4. Restart the Web Server

# /opt/httpd/bin/apachectl restart or /etc/rc.d/init.d/httpd restart

Note: Every Virtual Domain must be valid in the DNS. Please refer Applying Domain name for adding New Virtual Domain.



Room 1619, Fortune Commercial Building, 362 Sha Tsui Road, Tsuen Wan, N.T.
Tel: (852) 2409-8602    Fax: (852) 2408-8632    E-mail: info@unisite.net