Virtual Nginx Module port to Webmin

SYSTEM INFORMATION
OS type and version Debian 13
Webmin version 2.630

Hello,

I got that in Webmin there’s no official and recent nginx module to manage just my single nginx server, and that virtualmin has.

So my question is how I can port just the nginx module from Virtualmin to Webmin ?

Thanks

P.S.
I don’t want to use nginx as backend for webmin, I need it just for reverse proxy some NodeJS app.

I have one

which looks like this

thanks,

I’d really like to test it.
where did you got it ?

IMHO would be great a toggle button for each website like active/stopped that creates or deletes a symbolic link from the site-available to the site-enabled.

It’s part of the normal install maybe check the unused modules section in webmin and see if it’s there

sorry I haven’t it on my debian 13 extrepo webmin package,
do you know if there’s any way to export it and send me for the import ?

This may work for you, in a terminal run

sudo apt install webmin-virtualmin-nginx

That’s a Virtualmin plugin (that happens to also include an nginx UI). It’s an accident of history, due to starting out without a GUI and only allowing basic nginx stuff in Virtualmin, and growing from there.

But, it isn’t a regular Webmin module and doesn’t answer OPs question.

I don’t see why one couldn’t make a version that doesn’t hook into Virtualmin, but it’s unlikely to be super simple.

sorry, than just to understand,
is there a way to have a simple nginx GUI module in webmin ?
like I wrote just for basic config showed in the picture plus enable/stop websites ?
where can I find the code of the nginx virtualmin showed in the picture ?
can I in some way adapt it for webmin ?

So what exactly is displaying at Webmin->Servers->Nginx Webserver ?
On my system it’s a UI that allows you to start/stop, and edit virtual server options along with deleting them. All that is missing is the ability to disable the virtual host
just for fun I installed the module on an apache based system and got the following


so it did place the module under Webmin->Servers, even in this case was useless as nginx is not currently installed

Error: Unable to locate package webmin-virtualmin-nginx

Looks like your using the new repository perhaps check webmin->system->software package updates->package repositories mine is set to

https://software.virtualmin.com/vm/7/gpl/apt

Maybe it’s missing from the repository you are using

They are not using Virtualmin, thus they do not have the Virtualmin repos. There is no expectation that the virtualmin-nginx plugin would be in the Webmin repository, because it is not a Webmin module, it is a Virtualmin plugin (which is a Webmin module that depends on Virtualmin) and requires Virtualmin.

I can take a look at that. Removing code from an existing, working module is definitely easier than adding new parts, so it might work. If it does, we’ll add it to the full Webmin module list to support Nginx the same way we support Apache.

1 Like

many thanks,

really appreciate,

in the past I always used the apache webmin module, but for a single project,

do you know if in below page there’s already a way to enable/stop a single virtual server ?
or is it something that has to be developed from scratch ?

thanks

Welcome!

Don’t change the subject. Start a new thread for each question.

A proper port of the Virtualmin Nginx plugin to a Webmin Nginx module is now available and will be included in the next Webmin 2.640 release.

For testing purposes, you can manually install it from the Webmin development repo if you’re comfortable doing so.

@Jamie, I’ll check how to make these non-redundant and have both Virtualmin Nginx and Virtualmin Nginx SSL depend on a new Nginx module if possible.

@Ilia my advice would be to limit the virtualmin-nginx plugin to just virtual_feature.pl in a future version, and have that call the APIs you moved to the new nginx module.