Welcome! Log In Create A New Profile

Advanced

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

October 09, 2011 12:48PM
On Sun, Oct 09, 2011 at 08:47:28AM -0400, pumamd wrote:
> Вобшем нужно сделать кэширование
> страницы с ссылкой 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"

nginx проверяет запрос без query string:
http://nginx.org/en/docs/http/request_processing.html#simple_php_site_configuration


--
Игорь Сысоев
http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
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: 264
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