Gallery2 rewrite rules

W. Andrew Loe III andrew at andrewloe.com
Wed Sep 17 02:31:28 MSD 2008


Gallery2 does support PathInfo style routing.

On Tue, Sep 16, 2008 at 11:38 AM, mike <mike503 at gmail.com> wrote:
> I'm wondering if some of those are even needed.
>
> You should see if gallery has a main file that can control the entire
> app - like Wordpress, Drupal, etc. Then all you need is error_page 404
> = /path/to/that/file.php?q=$request_uri; (or whatever the right
> parameter is) - a lot of people for some reason think they need to set
> wordpress specific rules for static files and wp-* files and the like;
> but they don't. Gallery could be the same way. It looks like it from
> the top, but the bottom sets of rules I am not sure about.
>
> Also - ditch spawn-fcgi. Use php-fpm :)
>
>
> On Tue, Sep 16, 2008 at 10:51 AM,  <nginx at donsbox.com> wrote:
>> Installed nginx for the first time, today, and like what I see!
>>
>> Using spawn-fcgi from lighttpd, I now have nginx fronting my Gallery 2.2.4
>> site.  Memory footprint is *much* smaller, and album load time is
>> noticeably faster.
>>
>> That said, I'm struggling to convert the Apache mod_rewrite rules
>> generated by Gallery 2 into nginx equivalents.
>>
>> Any takers on converting these?  http://www.donsbox.com/~dfelicia/g2_rewrites
>>
>>
>>
>>
>>
>
>





More information about the nginx mailing list