Avice for my vhost configuration

B.R. reallfqq-nginx at yahoo.fr
Tue Aug 6 00:40:57 UTC 2013

Yup, include is the way I would do that personally.

Documentation: http://nginx.org/en/docs/ngx_core_module.html#include
The funny thing is you already are using the 'include' directive: look at
your 'include fastcgi_params;' line. There must be a 'fastcgi_params' file
in your configuration directory...
That probably comes from the part you copied/pasted from the sample doc.

The way to go would be to put the redundant configuration part in it then
call it wherever necessary in the vhosts conf.
The docs tell you that include can be used in any context you wish, you
just need to decide on the granularity.

Hope I helped,
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130805/36a5c524/attachment-0001.html>

More information about the nginx mailing list