Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Присутствие "?" в location
- To: nginx-ru@xxxxxxxxx
- Subject: Присутствие "?" в location
- From: "pumamd" <nginx-forum@xxxxxxxx>
- Date: Sun, 09 Oct 2011 08:47:28 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=Ys/iJORvb1+O60glAUG//alwU9m7eh7WMyovdzOEmZE=; b=X4ivG2A4iqlCNUUUjinYLjMp+8M6Nneo9o2u1BIzckNoMbfMCT5yOXhTOP3tjU4kWo1WluunIFCW9jbg1Z5HupjCgDUUjSz6JTWPqw+Qhl7oioVABBDFh6lBy6LhRQAb;
Вобшем нужно сделать кэширование
страницы с ссылкой 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"
Помогите :(
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,216426,216426#msg-216426
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|