<div dir="ltr">if you want i have written a ebuild that does the php-fpm patching and copy&#39;s php-fpm startup script / config files into place. If you want i can post it somewhere to let you download it. The only issue i had was you can&#39;t have apache flag turned on because in the apache configure it never generated the files needed to copy for start up etc. and apache is always done last.&nbsp;<div>
<br></div><div>I was also looking at trying to get clean Gallery2 urls and gave up as i never could find resources or get them done correctly.&nbsp;<br><br><div class="gmail_quote">On Tue, Sep 16, 2008 at 7:10 PM,  <span dir="ltr">&lt;<a href="mailto:nginx@donsbox.com">nginx@donsbox.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">&gt; I&#39;m wondering if some of those are even needed.<br>
</div>They&#39;re used by the rewrite module to allow &quot;friendly&quot; URLS. &nbsp;For example:<br>
<br>
This: <a href="http://pictures.donsbox.com/v/2008" target="_blank">http://pictures.donsbox.com/v/2008</a><br>
Instead of: <a href="http://pictures.donsbox.com/main.php?g2_itemId=66556" target="_blank">http://pictures.donsbox.com/main.php?g2_itemId=66556</a><br>
<div class="Ih2E3d"><br>
&gt; You should see if gallery has a main file that can control the entire<br>
&gt; app - like Wordpress, Drupal, etc.<br>
</div>The rewriting is only to produce human readable, friendly URLs. &nbsp;PHP<br>
PathInfo is supported, too, so I can definitely do away with the<br>
rewrites... but PathInfo is more expensive (and slower), so I was hoping<br>
to convert the rewrite rules. &nbsp;Unfortunately, my regex prowess is<br>
apparently not up to snuff, as I can&#39;t make nginx happy.<br>
<div class="Ih2E3d"><br>
&gt; Also - ditch spawn-fcgi. Use php-fpm :)<br>
</div>I saw a blog, somewhere, recommending the same. &nbsp;I run Gentoo, though, and<br>
looks like it won&#39;t be added:<br>
<a href="http://bugs.gentoo.org/show_bug.cgi?id=208155" target="_blank">http://bugs.gentoo.org/show_bug.cgi?id=208155</a> &nbsp;Guess I can patch the<br>
ebuild, or compile vanilla sources + php-fpm, if there&#39;s good reason.<br>
What makes php-fpm superior? &nbsp;The doc is, umm, a bit light :-)<br>
<a href="http://php-fpm.anight.org/docs.html" target="_blank">http://php-fpm.anight.org/docs.html</a><br>
<br>
<br>
</blockquote></div><br></div></div>