Welcome! Log In Create A New Profile

Advanced

Re: SSI и мемкеш

June 13, 2010 09:18AM
On Sun, Jun 13, 2010 at 01:58:19PM +0400, Aleksandr Sytar wrote:

> Или я чего-то не понимаю или nginx не отрабатывает error_page при SSI-include
>
> server {
> listen 80;
> server_name name;
>
> charset utf-8;
>
> access_log /var/log/nginx/test.access.log combined;
> access_log /var/log/nginx/upstream.test.access.log upstream;
>
> root /var/www/www;
>
> ssi on;
>
> gzip off;
>
> log_subrequest on;
>
> set $memcached_key "$uri";
>
> location / {
> default_type text/html;
> memcached_pass memcached;
> error_page 404 502 504 = @php;
> }
>
> # Это ssi-include
> location /catalog/get_subcategory_product {
> default_type text/html;
> memcached_pass memcached;
> error_page 404 502 504 = @php;
> }
>
> location @php {
> fastcgi_pass backend;
> include fastcgi_params;
> fastcgi_param SCRIPT_FILENAME $document_root/index.php;
> fastcgi_param PATH_INFO $uri;
> fastcgi_param REQUEST_URI $uri;
> }
> }
>
> Результат - при инклюде nginx смотрит в мемкеш, ничего там не находит
> и возвращает 404 игнорирую error_page

Должно работать, нужен отладочный лог.

> Пробовал try_files (смотреть в мемкеш через именованный локейшн -
> try_files @memcached @php) - nginx всегда берёт данные из @php:

@memcached - это не файл.


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

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

SSI и мемкеш

Aleksandr Sytar June 13, 2010 06:00AM

Re: SSI и мемкеш

Aleksandr Sytar June 13, 2010 06:10AM

Re: SSI и мемкеш

Igor Sysoev June 13, 2010 09:18AM

Re: SSI и мемкеш Attachments

Aleksandr Sytar June 13, 2010 09:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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