Last post I demo how to setup the virtual servers in WAMP, now give the example for LINUX APACHE.
It’s easier than WAMP, I think, only one configuration file needs to be updated.
please edit your httpd.conf where located at /etc/httpd/conf, and updated some configuration as below (as screenshot)
and the last step I will suggest is to update your hosts file where is located at /etc directory.
in such architecture, apache will identify your FQDN to decide which virtual web site will be redirected. for this example, my domain name of BLOG is blog.urcloud.biz, when you guys input the FQDN on your browser, and then apache will search for the setting of virtual server in httpd.conf, and then forward to the right index page for clients. so, it’s very important when you set up a servername in your virtualhost setting of httpd.conf, you also need to make sure it can be correctly work fine on your DNS setting.
in short, in this case, if you did not set up a right FQDN on your DNS server, users will not find your virtual web site. to make sure your dns setting is ok, please try to nslookup or dig in your linux or using nslookup in your windows OS.