Nginx-Virtualmin : virtual server template

Posted by Zulkhaery Basrul on Server Fault See other posts from Server Fault or by Zulkhaery Basrul
Published on 2012-06-10T03:51:44Z Indexed on 2012/06/12 10:41 UTC
Read the original article Hit count: 166

Filed under:
|

I want to edit nginx server template. I want every new virtual server created to use some specific nginx server configs and location settings.

I want to add this line each time virtualmin created a server:

 if (!-f $request_filename) {
                    rewrite ^/(.*)$ /index.php?q=$1 last;
                break;
           }  

Where can i find it? or what is the best way to add these line automatic ?

© Server Fault or respective owner

Related posts about nginx

Related posts about virtualmin