How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

January 4, 2013

how to modify nginxcp vhost templates

Filed under: Linux — admin @ 1:52 pm

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

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress