Welcome! Log In Create A New Profile

Advanced

Re: Avice for my vhost configuration

B.R.
August 05, 2013 08:42PM
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.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Avice for my vhost configuration

miky August 05, 2013 05:46PM

Re: Avice for my vhost configuration

B.R. August 05, 2013 08:42PM

Re: Avice for my vhost configuration

artem August 06, 2013 04:12AM

Re: Avice for my vhost configuration

miky August 06, 2013 03:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready