Apache Virtual Host Configuration
July 19th, 2009
No comments
Image via Wikipedia
Apache: Name Based Virtual Host
The server machine has a primary name server.domain.tld. Then there are two aliases (CNAMEs) for that server say www.domain.tld and www.sub.domain.tld for the address server.domain.tld.
We need different server configuration for each name so that each name can act as differrent web servers.
Here is the configuration for the vhost.conf file (the one that will be included in the main config file httpd.conf)




Recent Comments