Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fastcgi_cache + zend framework
- To: nginx-ru@xxxxxxxxx
- Subject: Re: fastcgi_cache + zend framework
- From: Илья Шипицин <chipitsine@xxxxxxxxx>
- Date: Sun, 20 Feb 2011 11:09:00 +0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=xohf/LrFzO2Ok0pKE6cVaov+eT1BOzlPpVLo8bKLJuA=; b=hyrmhGgNsbcFzqmN+6TcAttduYZmiqntRSCs5PZF9rHSupr0QgDbl2+OgP3Bi+Yv7a qKA7CP6iRSnPhEu6fm0Z4eBJQQisoNT7WLofpSpveJKDEd0iWo3qBfFuNgAojA2CXH3G PGQ57QqwY0rL1R2kuCOuDflofScIhhwqtBBV8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dk93iXRgQqlaW/zQv3gy2UVs0sJjaVo9CmrtdZCvSSHStKdqGbC6f35Q6otkysPpnf NDLIjKHtUZjR8Wg7pIeyk+Ovf3GkY01ZzEKU3wR4oAnC4nPhjs77mMB0vEnXkA1DWRiE ah2R/dQmH3GKo1gIHIDcTMSJJ6uhVKH4L5/4E=
- In-reply-to: <ebb1153900b0b638a4973f8820417ab2.NginxMailingListRussian@xxxxxxxxxxxxxxx>
- References: <ebb1153900b0b638a4973f8820417ab2.NginxMailingListRussian@xxxxxxxxxxxxxxx>
работающий сайт на 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@xxxxxxxx> написал:
> Добрый день всем специалистам!
>
> Есть сайт на 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@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
>
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|