Welcome! Log In Create A New Profile

Advanced

Re: Generating redirects to internal named locations

Paul Findlay
August 10, 2011 07:14AM
> In this case, many software developers will tell you that factoring out
> common lines of configuration as I have suggested prevents bugs and is
> easier to read.
>
> In my example above, if I misconfigure the perl section, I only have to
> fix it in one place. If I do it the way you suggest, pasting that
> configuration into 20 different location blocks, I have to fix any
> configuration bug in 20 places. If I change one location slightly,
> it may be hard to spot that there's a bug in that location.
You can share much of the fastcgi configuration for each location by
'factoring' it out into a separate fastcgi configuration file and
including it like so:

include <http://wiki.nginx.org/NginxHttpMainModule#include> /etc/nginx/fastcgi_params;

Regards

Paul Findlay

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Generating redirects to internal named locations

Dave Hayes August 07, 2011 05:20PM

Re: Generating redirects to internal named locations

Alexandr Gomoliako August 07, 2011 06:08PM

Re: Generating redirects to internal named locations

Dave Hayes August 07, 2011 11:58PM

Re: Generating redirects to internal named locations

Alexandr Gomoliako August 08, 2011 12:36PM

Re: Generating redirects to internal named locations

Dave Hayes August 10, 2011 02:30AM

Re: Generating redirects to internal named locations

Paul Findlay August 10, 2011 07:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready