October 09, 2011 08:47AM
Вобшем нужно сделать кэширование страницы с ссылкой http://site.ru/index.php?page=bans.

конфиг:

location ~* "/index.php?page=bans" {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

fastcgi_cache bans;
fastcgi_cache_valid 200 301 302 304 30s;
fastcgi_cache_valid 404 1m;
fastcgi_cache_key "$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";
fastcgi_hide_header "Set-Cookie";
fastcgi_ignore_headers "Cache-Control" "Expires";
}

Но кэширование не реагирует на данную URI.

Пробовал ешё так:
location ~* "/index.php?page=bans" {
location ~* "/?page=bans" {
location ~* "index.php?page=bans" {
location ~* "?page=bans" {
location ~* "/index.php\?page\=bans" {
location ~* "index.php\?page\=bans" {
location ~* "/\?page\=bans" {
location ~* "\?page\=bans" {

Неодно не помогло из этих

ПС данный location блок стойт первым из всех "location" в блоке "server"

Помогите :(
Subject Author Posted

Присутствие "?" в location

pumamd October 09, 2011 08:47AM

Re: Присутствие "?" в location

Igor Sysoev October 09, 2011 12:48PM

Re: Присутствие "?" в location

pumamd October 09, 2011 01:20PM

Re: Присутствие "?" в location

Vitaliy Lysenko October 12, 2011 01:20PM

Re: Присутствие "?" в location

pumamd October 13, 2011 12:03PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready