# Virtualmin behind Nginx Proxy Manager

**URL:** <https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367>\
**Category:** Help! (Home for newbies)\
**Created:** [November 11, 2024, 1:22pm UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367 "2024-11-11T13:22:40Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![francis.boterblom](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/9fc29f/32.png) [@francis.boterblom](https://forum.virtualmin.com/u/francis.boterblom)\
**Post date:** [November 11, 2024, 1:22pm UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/1 "2024-11-11T13:22:40Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Ubuntu 24.04 |
| Virtualmin version | GPL. |

Hi everyone,

I looked at the forum to find my answers and also the FAQ but with all the (different) information I am not sure how to handle this and need your help.

I have NPM running in my selfhosted environment for several service using docker containers. Within in my router/firewall I forward HTTP and HTTPS traffic to my proxy, so I can access webservices from the internet with an Letsencrypt certificate.

I have installed virtualmin on a separated virtual Ubuntu server and can create virtualservers. But I should I make that work using the proxy server? Should I use different ports on the virtualserver configuration for HTTP and HTTPS and point NPM tot that IP and port number?

Kind regards,

Francis

---

<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:** [November 11, 2024, 2:19pm UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/2 "2024-11-11T14:19:16Z")

</div>

> [@francis.boterblom](#):
>
> I have installed virtualmin on a separated virtual Ubuntu server and can create virtualservers. But I should I make that work using the proxy server? Should I use different ports on the virtualserver configuration for HTTP and HTTPS and point NPM tot that IP and port number?

If this virtual machine isn’t going to serve any websites using a web server like Apache or Nginx, you can set Webmin to listen on port 443 and make it accessible like a regular “website”.

---

<div class="post-metadata">

**Author:** ![francis.boterblom](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/9fc29f/32.png) [@francis.boterblom](https://forum.virtualmin.com/u/francis.boterblom)\
**Post date:** [November 11, 2024, 6:26pm UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/3 "2024-11-11T18:26:27Z")

</div>

Well, it is going to serve websites. I choose virtualmin exeactly for that. I want to host several wordpress websites

---

<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:** [November 11, 2024, 6:49pm UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/4 "2024-11-11T18:49:56Z")

</div>

I don’t think you grasped @Ilia (maybe translation) response there is no need getting upset

---

<div class="post-metadata">

**Author:** ![francis.boterblom](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/9fc29f/32.png) [@francis.boterblom](https://forum.virtualmin.com/u/francis.boterblom)\
**Post date:** [November 11, 2024, 8:00pm UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/5 "2024-11-11T20:00:17Z")

</div>

ooh sorry, I was not upset. Sorry if I came through that way.

---

<div class="post-metadata">

**Author:** ![francis.boterblom](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/9fc29f/32.png) [@francis.boterblom](https://forum.virtualmin.com/u/francis.boterblom)\
**Post date:** [November 12, 2024, 8:03am UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/6 "2024-11-12T08:03:14Z")

</div>

I am trying to understand. Should I point my reverse proxy to webmin on port 10000 for every web domain hosted on webmin? So for example, I have two web domains, [website1.com](http://website1.com) and [website2.com](http://website2.com), should I put an entry in the reverse proxy server for every web domain pointing to the server IP on port 10000?

---

<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:** [November 12, 2024, 10:21am UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/7 "2024-11-12T10:21:30Z")

</div>

> [@francis.boterblom](#):
>
> should I put an entry in the reverse proxy server for every web domain pointing to the server IP on port 10000?

It’s really up to you! You could make those available for all records, or just set it up for one, like `hostname:10000`, for example. But, personally, I wouldn’t run Webmin behind a proxy — I’d keep it accessible independently on a dedicated IP. But again, it’s your choice!

---

<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:** [November 12, 2024, 10:37am UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/8 "2024-11-12T10:37:07Z")

</div>

> [@jimr1](#):
>
> I don’t think you grasped @Ilia (maybe translation) response

That’s right — I love translating English into English. 😉

---

<div class="post-metadata">

**Author:** ![toreskev](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/toreskev/32/160_2.png) [@toreskev](https://forum.virtualmin.com/u/toreskev)\
**Post date:** [November 12, 2024, 12:11pm UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/9 "2024-11-12T12:11:26Z")

</div>

No, you would proxy it to the IP of the Virtualmin server port 80 (since you’d have to terminate SSL on the NPM server).  
I’m doing this myself at home and it works swell for some particular usecases.

---

<div class="post-metadata">

**Author:** ![francis.boterblom](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/9fc29f/32.png) [@francis.boterblom](https://forum.virtualmin.com/u/francis.boterblom)\
**Post date:** [November 12, 2024, 12:46pm UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/10 "2024-11-12T12:46:31Z")

</div>

ok, good information. So how did you make it work with wordpress application installed for example? because when I try to load [https://mydomain.com/wordpress](https://mydomain.com/wordpress) the request times out. I am also looking for a way to make it work so that when users type in the main domain wordpress is loaded.

---

<div class="post-metadata">

**Author:** ![toreskev](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/toreskev/32/160_2.png) [@toreskev](https://forum.virtualmin.com/u/toreskev)\
**Post date:** [November 13, 2024, 9:02am UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/11 "2024-11-13T09:02:45Z")

</div>

> [@francis.boterblom](#):
>
> I am also looking for a way to make it work so that when users type in the main domain wordpress is loaded.

You select the path or subdirectory during the install of WP from the install scripts.

> [@francis.boterblom](#):
>
> because when I try to load [https://mydomain.com/wordpress](https://mydomain.com/wordpress) the request times out.

Is it working on your local network? First make sure the Virtualmin server responds to requests, then proceed with hooking the proxy up infront.  
I don’t have a vmin server on my network currently, but after adding the domain in vmin, add the same on NPM, requesting cert and so on, proxying to vmin-ip:80.  
You need to disable any automatic redirect from 80-\>443 on vmin, otherwise you’ll get a loop.

---

<div class="post-metadata">

**Author:** ![francis.boterblom](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/9fc29f/32.png) [@francis.boterblom](https://forum.virtualmin.com/u/francis.boterblom)\
**Post date:** [November 17, 2024, 11:24am UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/12 "2024-11-17T11:24:47Z")

</div>

Hi All,

Thanks you all for your help. It is working now with the tips in this thread. Now I continue to test Virtualmin and learn more about it.

Kind Regards,

Francis

---

<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:** [November 25, 2024, 11:24am UTC](https://forum.virtualmin.com/t/virtualmin-behind-nginx-proxy-manager/130367/13 "2024-11-25T11:24:51Z")

</div>

Closed on November 25, 2024, 11:24am UTC

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