This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
Hello,
You go to /etc/nginx/nginx.conf and insert the value you want to. This is a global setting.
Yannis
Thank you so much @Yannis, I did find an UI way as well.
System Settings->Features and Plugins->NgInx website->Configure button
thenAdditional Nginx directives for new virtual hosts
I'm currently experimenting with both to see which one will work best for our administration workflow.
UPDATE:
Adding the global settings as Additional directives only seems to work for one line items. Our configuration we need the following:
location / { try_files $uri $uri/ /index.php?$query_string; }
This is for WordPress, and we need it per site. When we restore, this restored:
location / { }
An empty location line. I'll do further experimentation and provide feedback.
Eugene van der Merwe
https://vander.host WordPress Website Hosting, VPS Hosting, and Domain Registration