# Domain displayed on Virtualmin log-in screen

**URL:** <https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983>\
**Category:** Blue Skies\
**Created:** [April 15, 2024, 7:23am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983 "2024-04-15T07:23:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigh](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/craigh/32/716_2.png) [@craigh](https://forum.virtualmin.com/u/craigh)\
**Post date:** [April 15, 2024, 7:23am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/1 "2024-04-15T07:23:18Z")

</div>

This post ([Root password no longer works for Virtualmin, but works over SSH](https://forum.virtualmin.com/t/root-password-no-longer-works-for-virtualmin-but-works-over-ssh/125961)), started by me, raised an issue that occurred to me back when I started using Virtualmin years ago.

The Virtualmin log-in screen displays this text: “You must enter a username and password to login to the server on DOMAIN”, where DOMAIN is clearly retrieved from the web browser’s address bar. I know this because I experimented with different domains pointing to the same server, and in each case the DOMAIN displayed was the domain in my browser’s address bar, less the port number, the scheme, etc.

To save you from reading the whole post to which I linked, a client updated the DNS for their domain (which is hosted on another server with a different control panel) which pointed to their VPS on which I had installed Virtualmin. Somehow a default IP address for another Virtualmin server was put into their DNS – probably from using a template – and so when I was trying to log into what I thought was their server, I was actually trying to log into a different server with log-in credentials that were never going to work.

If the default text above was displaying something from a configuration setting – e.g., “ABC Hosting Company”, or (perhaps in this case), “XYZ Client Company” – I would have noticed and not needed to seek the help that I sought. As it was, the log-in screen displayed exactly what I expected it to, because the log-in screen is programmed to display exactly what I typed into the browser’s address bar.

The default text can remain what is in the browser’s address bar, but in this case I would have configured it to read, “XYZ Client Company”, and when I saw “ABC Hosting Company” (what I would configure my company’s Virtualmin log-in page to display), I would have known immediately I was on the wrong server, and acted accordingly.

I realise that the log-in page can be configured to display a logo or something like that, but it turns out that a logo is actually too subtle. I have the client’s logo on their Virtualmin log-in page, but I log into the company server far more often so I had essentially become blind to the logo, and didn’t even notice that what I thought was my client’s log-in page was displaying my company’s logo instead of my client’s logo.

Thanks.

Craig

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [April 15, 2024, 11:23am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/2 "2024-04-15T11:23:34Z")

</div>

Hello Craig!

> [@craigh](#):
>
> As it was, the log-in screen displayed exactly what I expected it to, because the log-in screen is programmed to display exactly what I typed into the browser’s address bar.

Thanks for the heads up!

I think you’d be happy to utilize **Show real hostname instead of name from URL?** option **Webmin ⇾ Webmin Configuration: Authentication** in page.

---

<div class="post-metadata">

**Author:** ![craigh](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/craigh/32/716_2.png) [@craigh](https://forum.virtualmin.com/u/craigh)\
**Post date:** [April 15, 2024, 9:27pm UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/3 "2024-04-15T21:27:01Z")

</div>

> [@Ilia](#):
>
> I think you’d be happy to utilize **Show real hostname instead of name from URL?** option **Webmin ⇾ Webmin Configuration: Authentication** in page.

Yes, I remember that feature now. However, I didn’t/don’t use it because the hostname used didn’t match the simplified hostname given to our users – e.g., we tell our users to log in at [web.example.com](http://web.example.com), yet the hostname displayed if I use this option is [something-else-with-a-number.example.com](http://something-else-with-a-number.example.com), which is just going to be confusing and result in more support requests.

My suggestion above is better, I believe. I can then set it to [web.example.com](http://web.example.com) or “ABC Hosting Company”. I know the problem that caused this suggestion happened on a GPL installation, but I use Pro as well.

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [April 16, 2024, 7:31am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/4 "2024-04-16T07:31:24Z")

</div>

why not add a theme logo, different for each server ?

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/7/7c912ed93b8721c0aa96dbb53556672663b68234.png)  
and  
 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/9/989b8570426031abcce32116450cb95079b76a2f.png)

2 different servers 2 different logo’s

---

<div class="post-metadata">

**Author:** ![craigh](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/craigh/32/716_2.png) [@craigh](https://forum.virtualmin.com/u/craigh)\
**Post date:** [April 16, 2024, 7:32am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/5 "2024-04-16T07:32:39Z")

</div>

Umm … I did …

> [@craigh](#):
>
> I realise that the log-in page can be configured to display a logo or something like that, but it turns out that a logo is actually too subtle. I have the client’s logo on their Virtualmin log-in page, but I log into the company server far more often so I had essentially become blind to the logo, and didn’t even notice that what I thought was my client’s log-in page was displaying my company’s logo instead of my client’s logo.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [April 16, 2024, 7:35am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/6 "2024-04-16T07:35:24Z")

</div>

newbie questions, where is this setting?

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [April 16, 2024, 7:38am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/7 "2024-04-16T07:38:21Z")

</div>

Just about here

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/9/95761636f3b01d2ca68fde0e6d22628af2264d38.png)

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [April 16, 2024, 7:41am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/8 "2024-04-16T07:41:35Z")

</div>

If you notice also the one screen is in the light theme the other is in dark, this is also configurable, independent of the user selected theme  
or change the background completely

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/e/e99f1be7b86b425bde3a9d291e2e200dc20ee07c.jpeg)

---

<div class="post-metadata">

**Author:** ![craigh](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/craigh/32/716_2.png) [@craigh](https://forum.virtualmin.com/u/craigh)\
**Post date:** [April 16, 2024, 7:54am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/9 "2024-04-16T07:54:41Z")

</div>

Hmm, I’ve never noticed that the background could be changed like that. As for light vs. dark, I thought that only took effect once you were logged in.

I guess I’ll experiment. I still think my idea is a decent one, but maybe I can do something that will slap me upside the head a little harder next time. 🙂

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [April 16, 2024, 8:00am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/10 "2024-04-16T08:00:04Z")

</div>

I’m just think of the load on the development staff of webmin to add new features.  
to change the login screen from light to dark use this option

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/6/661001e21c61a1709b4e551626bfa4e0b9e95a92.png)

---

<div class="post-metadata">

**Author:** ![craigh](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/craigh/32/716_2.png) [@craigh](https://forum.virtualmin.com/u/craigh)\
**Post date:** [April 16, 2024, 8:08am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/11 "2024-04-16T08:08:11Z")

</div>

It’s a reasonable consideration. I do use a different colour scheme _inside_ (once you’re logged in) on different servers, but I think that that log-in page option is relatively new. Theoretically I’ll run out of colours one day, and there are only two light/dark options.

It was a stupid mistake I made that led to this suggestion. Getting @Ilia to add my suggestion is work, but so was his trying to respond to the post that led to this suggestion.

But I _do_ appreciate your suggestions. Thanks.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [April 16, 2024, 9:31am UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/12 "2024-04-16T09:31:16Z")

</div>

> [@craigh](#):
>
> My suggestion above is better, I believe. I can then set it to [web.example.com](http://web.example.com) or “ABC Hosting Company”.

Alright, implemented here:

> <https://github.com/webmin/authentic-theme/commit/53b110bb09a927a565734e9916bb4eb78d2399ff>
>
> https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/1259…83/3?u=ilia

You can now add the `settings_login_page_server_name` option to the `/etc/webmin/authentic-theme/settings.js` file to display a custom string instead of a hostname or domain name.

---

<div class="post-metadata">

**Author:** ![craigh](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/craigh/32/716_2.png) [@craigh](https://forum.virtualmin.com/u/craigh)\
**Post date:** [April 16, 2024, 9:07pm UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/13 "2024-04-16T21:07:56Z")

</div>

> [@Ilia](#):
>
> You can now add the `settings_login_page_server_name` option to the `/etc/webmin/authentic-theme/settings.js` file to display a custom string instead of a hostname or domain name.

Thanks. 🙂

---

<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:** [June 15, 2024, 9:08pm UTC](https://forum.virtualmin.com/t/domain-displayed-on-virtualmin-log-in-screen/125983/14 "2024-06-15T21:08:01Z")

</div>

Closed on June 15, 2024, 9:08pm UTC

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