Caching questions
shaktale
nginx-forum at nginx.us
Tue Aug 4 11:19:03 MSD 2009
> 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 !
Thanks again.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4699,4710#msg-4710
More information about the nginx
mailing list