These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for host server getting the same conents as virtual server on the new forum.
Hi guys,
I am experiencing the Virtualmin. It worked great on CentOS 6.6 on my server. But When I upgraded to CentOS 7.0 (fresh installation), I am having issue with the Virtualmin. When I created the first virtual server and uploaded the contents to the virtual server, lets say virtualserver1.com to /home/virtualserver1/public_html, I would be getting the same stuff from the virtualmin server (host). For example, my host name is web.example.com. But web.example.com will be getting the same stuff as virtualserver1.com.
Do you guys know why?
I would appreciate any inputs.
Kind regards, Henry
Hi guys,
I thank I got the answer as quoted from http://httpd.apache.org/docs/current/vhosts/name-based.html
" # This first-listed virtual host is also the default for *:80 ServerName www.example.com ServerAlias example.com DocumentRoot "/www/domain"
ServerName other.example.com DocumentRoot "/www/otherdomain" "
Howdy,
You can set what domain is the default domain by going into Server Configuration -> Website Options, and there, set "Default website for IP address" to "Yes" for the domain that should be the default.
-Eric
Hi Eric,
Thank you very much for the info. It is good to know.
Cheers, Henry