Welcome! Log In Create A New Profile

Advanced

Re: Different cache time for different locations

António P. P. Almeida
September 21, 2012 12:46PM
On 21 Set 2012 15h40 CEST, nfnlists@gmail.com wrote:

> Hello,
>
> That's the way applications like wordpress and others works, in my
> case it's Invision Power Board.

With WP you can enumerate all PHP files and even if you don't want to
do that you can constrain the execution by using something like this:


## Regular PHP processing.
location ~ ^(?<script>.+\.php)(?<path_info>.*)$ {
include fastcgi.conf;
## The fastcgi_params must be redefined from the ones
## given in fastcgi.conf. No longer standard names
## but arbitrary: named patterns in regex.
fastcgi_param SCRIPT_FILENAME $document_root$script;
fastcgi_param SCRIPT_NAME $script;
fastcgi_param PATH_INFO $path_info;
## Passing the request upstream to the FastCGI
## listener.
fastcgi_pass phpcgi;
}

--- appa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Different cache time for different locations

Nuno Neves August 31, 2012 12:48PM

Re: Different cache time for different locations

Maxim Dounin August 31, 2012 01:10PM

Re: Different cache time for different locations

Nuno Neves September 20, 2012 05:32PM

Re: Different cache time for different locations

António P. P. Almeida September 20, 2012 05:58PM

Re: Different cache time for different locations

Nuno Neves September 21, 2012 09:42AM

Re: Different cache time for different locations

António P. P. Almeida September 21, 2012 12:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
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