If you want to maintain multiple domains/hostnames on your machine you can
setup VirtualHost containers for them.
Please see the documentation at URL:http://www.apache.org/docs/vhosts/ for
further details before you try to setup virtual hosts.
| FQDN | Document Root | |
|---|---|---|
| Host Name | www.hoge.edu.bt (202.144.157.211) | /var/www/html/ |
| Virtual Host Name | server.hoge.edu.bt (202.144.157.211) | /var/www/server/ |
www IN A 202.144.157.211
server IN CNAME www
...
NameVirtualHost 202.144.157.211:80
<VirtualHost 202.144.157.211>
DocumentRoot /var/www/html/
ServerName _default_
</VirtualHost>
<VirtualHost 202.144.157.211>
DocumentRoot /var/www/server/
ServerName server.hoge.edu.bt
</VirtualHost>
...
Copyright © [- SroNey / JohN -]. All rights reserved