If I make a change in an apache config file with Services and Configure Website, I can click the little arrow-circle which mouse-overs to “Apply Changes”, and appears to launch:
Can’t locate ./apache-lib.pl at ./usr/share/webmin/apache/restart.cgi line 5.
from outside of the directory or:
WEBMIN_CONFIG not set at …/web-lib-funcs.pl line 5021.
Compilation failed in require at ./restart.cgi line 5.
from inside it.
I assume this uses something like:
service apache2 reload
systemctl reload apache2
But I would like to know for certain (and whether restart.cgi can otherwise be referenced/executed via the command line).
I have an IP-restricted folder on a website and users have to ask to have their IP added. I am considering how I might add a “ready for prime time” type of one-click “add new IP here” (for IPs already approved/users logged in to this site… not virtualmin), have it append the .conf file, and then do the apache reload. I just don’t want to miss anything that restart.cgi might do (or unnecessarily elevate privileges somewhere).
It’s configured in the module related to the service. Go to Webmin->Servers->Apache Webserver->Module Configuration (click the gear icon in the upper left corner of the content pane)
Click the gear () in the upper left corner of the content pane. That is Module Configuration. It exists in almost every module (any module that is configurable).
If you’re not using the default theme (Authentic), Module Configuration may be somewhere else or labeled differently.