Disable host default page

SYSTEM INFORMATION
OS type and version Ubuntu 24.04.2 LTS
Webmin version 2.303
Virtualmin version 7.30.8
Webserver version Apache version 2.4.58

I have just installed a fresh Virtualmin, I only want the https://my-doamin.com:10000 publicly available so I want to disable Hostname default page. Please help me to solve this. Thank you guys!!!

I hope you haven’t setup the hostname as a domain in virtualmin, you don’t need to do that.
Set your hostname to something like server.mydomaim.com and then just host mydomain.com in virtualmin

1 Like

Have you tried to disable Apache/Ngnix

Hi,

Does it prevent other virtual hosts to be accessible if I disable Apache like you said? Because I see that this is the global config so it might affect other virtual servers, right?

Apache is needed for all Virtual Hosts. Disabling Apache is not a sensible thing to do.

1 Like

Just put a blank index.html in the web root of the default site

Or a htaccess rule to respond with a 403/404 error

Alter server template to remove 1000 redirect to webmin

Sorry I thought you meant you didn’t want web hosting.

1 Like

Hi,

My /home/._default_hostname/public_html onky has this index.html file. If I want to use .htaccess, do I have to create it myself or there are other ways to achieve this?

I am not sure what you want but here is the relevant code. With the .htaccess make sure you have local access as I don’t know the ._default_hostname account.

index.html

<!DOCTYPE html><title></title>

or

.htaccess

order deny,allow
deny from all
allow from 127.0.0.1

https://stackoverflow.com/questions/9507645/htaccess-deny-from-all

1 Like

It automatically created Virtual server to port 80, 443 to my system hostname domain. I just want it be accessible by port 10000, can I disable it (I deleted those 2 virtual servers but the host default page still appears) or just leave it there is OK? Thanks !


I think it works , thank you!

1 Like

the 127.0.0.1 will just ensure local access.

Never come across that before, the system host name is reserved and does not have any domains produced by virtualmin, I would also think that rather odd user

Was not created by virtualmin/webmin but if you installed virtualmin on a system that had been configured prior to the virtualmin install that would explain that, you need to tell us the complete history of your server setup. If the system was pre configured you may have problems with other services, virtualmin should be installed on a ‘clean’ installation of your selected distro

2 Likes

Hi all, I go to Webmin → Servers → Apache Webserver → Global configuration → Per-Directory Options Files , then put the path to index.html (/home/._default_hostname/public_html) and Create Options File with variables above so it works

Why are using webmin all the time you should be using webmin for this

sorry I can’t get what you mean

It was created by Virtualmin.

This is created to try to get a Let’s Encrypt cert before any Virtualmin-managed domains exist (you historically cannot get a cert for an IP from Let’s Encrypt, though they allow it now). Ilia added an automatically generated virtual server for the system hostname (if it resolves), and gets a cert for it, during installation.

Its entire purpose in life is to make it easier to log in the first time. It is confusing, and I’ve never liked it because it is confusing (and it shouldn’t be named “default”, because that makes it seem more important than it is), but Ilia is really insistent this makes things easier and not more confusing.

You can ignore it. You don’t need to use it for anything. If you’re spending any time at all thinking about it, trying to do something with it (other than log in the first time), you are doing unnecessary work and thinking too hard about something that does not matter.

1 Like