Disable open_file_cache for a specific location

Francis Daly francis at daoine.org
Mon Jul 8 22:05:10 UTC 2013

On Mon, Jul 08, 2013 at 03:42:31PM -0400, Peleke wrote:

Hi there,

> http://www.peleke.de/galerie/google/
> Nothing happens after a click on an album thumbnail. You will only see a
> reload of the page and this added to the URL:
> ?page_id=0&albid=5898003541337462625 (for example) which should show the
> thumbnail pictures of the album.

I think that you are saying:

http://www.peleke.de/galerie/google/ does return the expected content, and
does not return the expected content; instead it returns the same
content as http://www.peleke.de/galerie/google/, as if the part after
the ? is being ignored.


>     location / {
>         try_files $uri $uri/ /index.php;
>         #include /etc/nginx/proxy_params;
>     }

If you use your favourite web search engine and look for the
equivalent of "site:wordpress.org nginx", you'll probably get to

If you search for "site:nginx.org wordpress", you'll probably get to

They both have a "location /" block which is not the same as yours.

The difference does seem to relate to the part after the ?.

Do things work any better if you use what they suggest?

Francis Daly        francis at daoine.org

More information about the nginx mailing list