Welcome! Log In Create A New Profile

Advanced

Re: Caching questions

August 04, 2009 03:53AM
On Tue, Aug 04, 2009 at 03:19:03AM -0400, shaktale wrote:

> > location /statics/ {
> > try_files $uri @statics;
> > }
> >
> > location @statics {
> > fastcgi_pass 127.0.0.1:9000;
> >
> > fastcgi_cache FCGI;
> > fastcgi_cache_key 127.0.0.1:9000$request_uri;
> >
> > include /usr/local/nginx/conf/fastcgi_params;
> > fastcgi_param SCRIPT_NAME /path/to/index.php;
> > fastcgi_param QUERY_STRING $uri;
> > }
> >
> > The only problem is that /statics/page1 will be passed as
> > /index.php?/statics/page1, but not to /index.php?page1
>
> yes, yes, this is the right way, my bad again with the sample.
>
> This works like a charm !

OK, just a note: remove QUERY_STRING from fastcgi_params and add it
in all fastcgi locations.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Caching questions

shaktale August 03, 2009 02:23PM

Re: Caching questions

Igor Sysoev August 03, 2009 02:30PM

Re: Caching questions

shaktale August 04, 2009 02:34AM

Re: Caching questions

Igor Sysoev August 04, 2009 02:45AM

Re: Caching questions

shaktale August 04, 2009 03:19AM

Re: Caching questions

Igor Sysoev August 04, 2009 03:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 117
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready