host server getting the same conents as virtual server

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

"<VirtualHost *:80>
# This first-listed virtual host is also the default for *:80
ServerName www.example.com
ServerAlias example.com
DocumentRoot “/www/domain”

<VirtualHost *:80>
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