Editing server block / Configure Nginx Website does not reload nginx

I made changes to the server block of a virtual server using Virtualmin > Web Configuration > Configure Nginx Website.
Goal was to enable ACME challenge for IPv6 so I had to add those blocks.
Saving worked, and the nginx configs were updated accordingly.
However this did not reload nginx, and I can not find a suitable button for it on the page where the config is saved, or a prompt that this should be needed.
The expectation would really be that after a server block is changed and saved, that nginx reload automatically.
I reloaded manually and then the ACME challenge worked as expected.

Am I missing something and doing this the wrong way, or is it a user experience that can be improved?
If it is the latter, I would almost like to argue that it could be a bug?

SYSTEM INFORMATION
OS type and version Ubuntu Linux 24.04.4
Webmin version 2.641
Usermin version 2.540
Virtualmin version 8.1.0 Professional
Theme version 26.41.1
Nginx version 1.24.0

This is for Apache but is probably similar. Harder to see in the new ā€˜subtle and easy on the eyes theme’. :frowning:

Are you checking for Alan?

Who is Alan ? Maybe an nginx guru :thinking:

There does not appear to be a reload button for nginx?

The post I responded to has been taken down. It is definitely a tongue in cheek reply and I can respond via PM if you want.

The user who posted has been removed, as they were a spammer.

I don’t use dark mode so I don’t know if that’s a problem or if the new ā€˜easy on the eyes’ theme just makes it impossible to see. On my screen it is a light grey color. It looks darker on the screen shot because it darkens on mouse hover.

The button exists when editing from Webmin, but not from Virtualmin.
And I think expectation would be that edits from Virtualmin should reload nginx automatically if needed to apply the new saved settings.

It is in Virtualmin on the Apache configuration. So, I’d say this is an inconsistency between the two.

This does seem like a reasonable expectation. I’m kinda wondering if there was some thinking about giving a domain owner the ability to reload the configuration. It shouldn’t be a problem if the domain owner is only affecting their own configuration.

I can see where you wouldn’t want to give ā€˜restart’ capabilities to each domain owner but reload should be safe enough I’d think.

Not sure if realoding nginx, and the config is bad, would stop nginx entirely?
If so, a reload from a domain owner should be preceeded by something like nginx -t which should return something like syntax is ok and test is successfullat the end, and if it returns something else it should stop the reload and revert the changes with a warning or something like that.

I’ll ā€œassā€ +ā€œuā€+ā€œmeā€ you are logged in with sufficient privilege level if you can do it in the Webmin interface.

Sure, but that extra step for editing something in one place, and then going to a completely different place to apply it, does not make much sense to me. Although as a work around it is as good as anything else, and better than having to run systemctl reload nginx.

@Jamie and I discussed this before, and even though it might feel unintuitive at first, it’s intentional. Making changes to the configuration and applying them are not the same thing, nor should the latter be automatically assumed.

This also reflects how it works when done via the terminal, meaning the configuration is edited first and the service is restarted separately.

That’s fair, but the page for this in Virtualmin does not have a reload button, so there is no intuitive way of knowing a reload should/need to happen.
If the reload should not be done from Virtualmin to apply a new config, the ability to change and save a new config in Virtualmin should be limited, maybe even not exist?
Lacking both a reload button and a reload indication makes the config save change unintuitive.

Maybe two save options? Save and Save&Apply ?

Alright, that’s really been overlooked. Check the following patch and let me know if it fixes the issue for you:

webmin patch https://github.com/webmin/webmin/commit/111dcb5

Not gonna be able to test it at the moment so taking your word for it :wink:

Thank you!