# Real host showing pages for first virtual server

**URL:** <https://forum.virtualmin.com/t/real-host-showing-pages-for-first-virtual-server/25583>\
**Category:** Help! (Home for newbies)\
**Created:** [July 27, 2006, 2:14pm UTC](https://forum.virtualmin.com/t/real-host-showing-pages-for-first-virtual-server/25583 "2006-07-27T14:14:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GarySims](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@GarySims](https://forum.virtualmin.com/u/GarySims)\
**Post date:** [July 27, 2006, 2:14pm UTC](https://forum.virtualmin.com/t/real-host-showing-pages-for-first-virtual-server/25583/1 "2006-07-27T14:14:51Z")

</div>

Hi,

I have installed webmin and virtualmin (and I am very impressed) but there is one small problem. My default pages in /var/www/html are no longer being shown when I point my browser to the real machine. Instead the pages for the first virtual server appear?

Has anyone else had this problem?

Thanks,

Gary

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [July 27, 2006, 4:35pm UTC](https://forum.virtualmin.com/t/real-host-showing-pages-for-first-virtual-server/25583/2 "2006-07-27T16:35:28Z")

</div>

Hey Gary,

This is just the way Apache does things (nothing to do with Virtualmin, in particular). An Apache either has VirtualHost style configuration, and the default is the first one configured, or you have just the default. If you don’t want you “default” domain to be a Virtualmin domain, you can create it manually or using the Apache module and then move it into position in the configuration file manually (Webmin’s Apache module probably also has a way to make it the default).

So, it’s not really a “problem”, just an aspect of the way Apache does virtual hosting.

Holler if you need further assistance getting the right domain displaying by default.

Don’t forget that you can use ServerName and ServerAlias directives to make any VirtualHost appear pretty much anywhere you want.

---

<div class="post-metadata">

**Author:** ![GarySims](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@GarySims](https://forum.virtualmin.com/u/GarySims)\
**Post date:** [July 28, 2006, 8:29am UTC](https://forum.virtualmin.com/t/real-host-showing-pages-for-first-virtual-server/25583/3 "2006-07-28T08:29:47Z")

</div>

Joe,

Many, many thanks for your reply… Something in the back of my mind knew what you said but I wasn’t sure.

Anyway, I created a virtual server using Webmin’s Apache module and then edited the configuration file so that it was the first one and now everything works great.

Again, many thanks,

Gary

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [July 28, 2006, 7:29pm UTC](https://forum.virtualmin.com/t/real-host-showing-pages-for-first-virtual-server/25583/4 "2006-07-28T19:29:10Z")

</div>

I’ve added this to the FAQ. Any question that comes up twice in the space of two days ([http://www.virtualmin.com/forums/message-view?message\_id=53156](http://www.virtualmin.com/forums/message-view?message%5fid=53156)) is definitely frequently asked.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:29am UTC](https://forum.virtualmin.com/t/real-host-showing-pages-for-first-virtual-server/25583/5 "2020-04-30T05:29:00Z")

</div>

Closed on April 30, 2020, 5:29am UTC


