<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<blockquote
cite="mid:201108100628.p7A6S9IT050648@hugeraid.jetcafe.org"
type="cite">
<pre wrap="">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.
</pre>
</blockquote>
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: <br>
<br>
<span class="Apple-style-span" style="color: rgb(85, 85, 85);
font-family: monospace; font-size: 14px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(240, 240, 240); ">
<pre class="de1" style="margin-top: 0px; margin-right: 4em; margin-bottom: 2em; margin-left: 2em; display: block; white-space: pre; unicode-bidi: embed; border-top-width: 3px; border-right-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(255, 255, 255); border-right-color: rgb(255, 255, 255); border-bottom-color: rgb(255, 255, 255); border-left-color: rgb(255, 255, 255); padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; background-color: rgb(249, 249, 249); color: rgb(85, 85, 85); font-size: 12px; line-height: normal; font: normal normal normal 1em/1.2em monospace; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; width: 765px; background-position: initial initial; background-repeat: initial initial; "><a href="h
ttp://wiki.nginx.org/NginxHttpMainModule#include" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(220, 3, 3); text-decoration: none; "><span class="kw1" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(177, 177, 0); ">include</span></a> /etc/nginx/fastcgi_params<span class="sy0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); ">;</span>
</pre>
</span>Regards<br>
<br>
Paul Findlay<br>
<span class="Apple-style-span" style="color: rgb(85, 85, 85);
font-family: monospace; font-size: 14px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(240, 240, 240); "><br>
</span>
</body>
</html>