Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_cache + zend framework

Илья Шипицин
February 20, 2011 01:10AM
работающий сайт на ZF:

server {
listen 80;
server_name .xxx.ru;
root /xxx;
charset utf-8;

error_log /var/log/nginx/spb_error.log debug;
access_log /var/log/nginx/spb_access.log combined;

location / {
try_files $uri $uri/ @zend;
index index.php index.html index.htm;
}
location ~ \.php$ {
try_files $uri @zend;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;

}
location @zend {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
include fastcgi_params;
}
location ~ /\. {
deny all;
}

}


19 февраля 2011 г. 19:03 пользователь Qaz <nginx-forum@nginx.us> написал:
> Добрый день всем специалистам!
>
> Есть сайт на zend framework, работает в связке
> nginx+php-fpm. Реврайты написаны следующим
> образом:
>
>
> server {
>
>        if (!-e $request_filename) {
>        rewrite ^.*$ /index.php last;
>        }
>
>
>  location ~ \.php$ {
>  root /usr/local/www/site;
>  fastcgi_pass unix:/var/run/php-fpm.sock;
>  fastcgi_buffer_size 64k;
>  fastcgi_buffers 4 128k;
>  fastcgi_index index.php;
>  fastcgi_param SCRIPT_FILENAME /usr/local/www/site/index.php;
>  fastcgi_param APPLICATION_ENV production;
>  include fastcgi_params;
>  fastcgi_param SCRIPT_NAME /index.php;
>  }
>
> Есть ли возможность к этой конструкции
> подключить fastcgi_cache? Я пробовал разные
> варианты, кеш не создавался.
>
> Заранее спасибо.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,176750,176750#msg-176750
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>

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

fastcgi_cache + zend framework

Qaz February 19, 2011 09:03AM

Re: fastcgi_cache + zend framework

Vladimir Getmanshchuk February 19, 2011 10:06PM

Re: fastcgi_cache + zend framework

Илья Шипицин February 20, 2011 01:10AM

Re: fastcgi_cache + zend framework

Qaz February 20, 2011 03:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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