<div>I guess I'll live with it for now.</div><div><div><br></div><div>The idea was to not repeat this data so it'd be easier to setup PHP on a variety of domains without repetition. Maybe Igor can look at this as a new feature request.</div>
<div><br></div><div>Thank You.</div><div><br><div class="gmail_quote">2009/5/4 Jim Ohlstein <span dir="ltr"><<a href="mailto:jim.ohlstein@gmail.com">jim.ohlstein@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
<br>
Michael Shadle wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sun, May 3, 2009 at 5:06 PM, Mathew Davies<br>
<<a href="mailto:thepixeldeveloper@googlemail.com" target="_blank">thepixeldeveloper@googlemail.com</a>> wrote:<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
location ~ \.php$<br>
{<br>
fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
fastcgi_index index.php;<br>
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
include fastcgi_params;<br>
}<br>
}<br>
<br>
</blockquote>
<br>
You can put these in fastcgi_params:<br>
<br>
fastcgi_index index.php;<br>
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
<br>
Also you can put all the fastcgi_params globally on the http {} block.<br>
<br>
I have done that, and it works well, there is some random situation<br>
though where if I try to override a fastcgi_param somewhere else, all<br>
of them get unset.<br>
<br>
<br>
</blockquote></div></div>
Correct me if I'm wrong, but you still have to put<div class="im"><br>
<br>
location ~ \.php$ {<br>
fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
<br></div>
...<br>
}<br>
<br>
for each server block where you want to configure php. Even if you are able to put the fastcgi_pass directive into fastcgi_params, something I haven't tried, you'd still need<br>
<br>
location ~ \.php$ {<br>
<br>
include fastcgi_params;<br>
} <br>
in any server block where you wanted to run run php scripts since fastcgi_pass has to be in a location block.<br><font color="#888888">
<br>
<br>
Jim<br>
<br>
<br>
<br>
</font></blockquote></div><br>
</div></div>