Nginx Comments in Additional directives for new virtual hosts

Hello, I’m unable to add a comment in “Additional Nginx directives for new virtual hosts” section located under “Virtualmin Tab > System settings > Features and Plugins > Nginx Website > Configure”.

Would like to add the below so that all new websites whether they are https or not have this directive available and can easily be uncommented by techs if needed. Or, simply adding a comment as to what the directive is used for.

#Uncomment next 3 lines to direct all to https
#if ($scheme = http) {
#return 301 https://$server_name$request_uri;

Is there anyway to add a comment in this section and have it show up in the new nginx domain config?


OS type and version Rocky Linux 9.1
Virtualmin version 7.3

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.