Answer the question
In order to leave comments, you need to log in
How to update settings in Virtualmin for all domains?
Installed:
Webmin+Virtualmin
Instruction:
https://certbot.eff.org/lets-encrypt/debianbuster-nginx
Configured, I get certificates from letsencrypt.
But: I have modified the file /usr/share/webmin/virtualmin-nginx-fpm/save_domain.cgi to my needs (nginx + php-fpm plugin) and I need to run save_domain.cgi for all domains so that it creates the "correct" ones site config files.
Actually the question is: how can you execute the save_domain.cgi file for each domain? Those. do not go into the domain settings in Virtualmin and do not click "Save" for each site so that it resaves the /etc/nginx/sites-available/site.conf
. * * meaning "save settings" with the "ssl" checkbox, which is not for all domains.
Answer the question
In order to leave comments, you need to log in
well, you need to use cron (crontab -e) as root and write a simple bash script, with a list of all commands... that will do it every hour, day, etc. You need to reload nginx after changing the configuration, for example nginx -s reload
Virtualmin has its own command line, for example:
https://www.virtualmin.com/documentation/developer...
Look for which commands will replace your actions in its GUI
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question