# Little but simple question I guess!? (Wrong) webpage appears on unassigned domain

**URL:** <https://forum.virtualmin.com/t/little-but-simple-question-i-guess-wrong-webpage-appears-on-unassigned-domain/133272>\
**Category:** Webmin\
**Created:** [May 3, 2025, 6:22pm UTC](https://forum.virtualmin.com/t/little-but-simple-question-i-guess-wrong-webpage-appears-on-unassigned-domain/133272 "2025-05-03T18:22:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WoozyFace](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/woozyface/32/17043_2.png) [@WoozyFace](https://forum.virtualmin.com/u/WoozyFace)\
**Post date:** [May 3, 2025, 6:22pm UTC](https://forum.virtualmin.com/t/little-but-simple-question-i-guess-wrong-webpage-appears-on-unassigned-domain/133272/1 "2025-05-03T18:22:32Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Deb 12 |
| Usermin version | 2.203 |
| Virtualmin version | 7.30.8 |
| Theme version | 23.03 |
| Nginx version | 1.22.1 |
| Package updates | All installed packages are up to date |

**Hi there,**

It’s me again — but this time with a simple one instead of a complex question. It might just be a dumb oversight on my part, but please spare me the “ID10T error” jokes. I know… 😉

So, what’s happening: whenever I add a new domain to my server and haven’t yet installed any Nginx config or used the domain for anything web-related, if I try visiting the domain in a browser, it always loads the most recently created website. That’s not ideal.

How can I make it show _nothing_ — or preferably just nothing — for domains that don’t yet serve any content? Some of these domains aren’t meant to be accessed through a browser at all.

---

<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:** [May 3, 2025, 7:28pm UTC](https://forum.virtualmin.com/t/little-but-simple-question-i-guess-wrong-webpage-appears-on-unassigned-domain/133272/2 "2025-05-03T19:28:38Z")

</div>

You cannot make it show nothing. Your web server is going to accept the connection, because it doesn’t know what domain is being requested until it accepts the connection and receives the host header from the browser, and the web server will serve the closest match available (even if the closest match is just “well, it’s on the same IP, so I’ll just pick the first one listed in the configuration file”).

You can choose which domain is the “default”, however, which makes it first in the list of virtual hosts. And, I guess you could make that domain serve a mostly empty HTML document that is a blank page or an error or something. (Or you could even make it serve an error, like a 404 or whatever, but that’s probably not the nicest thing to do.)

You can choose a domain as the “default” by browsing to Web Configuration-\>Website options and selecting “Yes” for “Default website for IP address”.

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/e/1/e1535c4534f55361348bac1b9d2aca9f2659fe59.png)

---

<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:** [May 11, 2025, 7:28pm UTC](https://forum.virtualmin.com/t/little-but-simple-question-i-guess-wrong-webpage-appears-on-unassigned-domain/133272/3 "2025-05-11T19:28:47Z")

</div>

Closed on May 11, 2025, 7:28pm UTC

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
