<virtualhost> # The first virtual host is also the default for *:80 ServerName www.fc18.com ServerAlias fc18.com *.fc18.com DocumentRoot /var/www/html </virtualhost> <virtualhost> ServerName other.hosts.com ServerAlias hosts.com DocumentRoot /var/www/hosts </virtualhost>
In the DNS server, you can add these to (bind) named.conf:
www.fc18.com. A 192.168.0.16 fc18.com. A 192.168.0.16 other.hosts.com. A 192.168.0.16 hosts.com. A 192.168.0.16If you are using hosts file, you can add these to hosts file:
192.168.0.16 www.fc18.com 192.168.0.16 fc18.com 192.168.0.16 www1.fc18.com 192.168.0.16 other.hosts.com 192.168.0.16 hosts.com
No comments :
Post a Comment