Hmm
Today I face a little problem. I install on a server nginxcp, and because I wanted varnish also, I have to modify nginx to run on other port then 80. So basically I modify zones every time after I have add them, but how to automate this.
After a little search and no answer I found the file that is responsibly for this.
So basically in /scripts/ you will find a new file called createvhosts.py
You have to modify here what you want to be keep into your zone automatically.
So to change the port from 80 to 81, I just have to modify this line
listen %s:80;
into
listen %s:81;
Please notice that are 2 modification that you have to do on that file.
If this help you please make a social bookmark for our site / page
Regards