Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SSI в .php файлах неработает
- To: nginx-ru@xxxxxxxxx
- Subject: SSI в .php файлах неработает
- From: "spnova" <nginx-forum@xxxxxxxx>
- Date: Mon, 07 Jun 2010 04:14:19 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=FR6tFw6w2lXAH4fmv4cZTWm1mwLmTiIGFP15/Eicc9A=; b=AydtkiaIyEn04Gw/TGXLckMItHjqVxm5qAUHpLNGqZ3Wux1WETiFpfhxGe9jCeKhvxfnPXn/1wE6ZjBxDD+JXXxIJ9cyBa72ea7eQzxda2O+li2Venx8SF1hitdfHKxS;
Немогу понять почему SSI неработает в PHP файлах, только в SHTML. Проблема в
моём конфиге или в том как я сконфигурировал nginx..
Вот мой конфиг:
server {
listen 80;
server_name site.ru www.site.ru;
server_tokens off;
ssi on;
access_log /var/log/nginx/notes.access.log;
root /var/www/nova/site.ru;
fastcgi_cache spnovacache;
fastcgi_cache_min_uses 1;
fastcgi_cache_valid 200 0m;
fastcgi_cache_valid 404 1m;
fastcgi_cache_valid 500 0m;
fastcgi_cache_use_stale updating error timeout invalid_header http_500;
fastcgi_cache_key $uri$is_args$args;
# Main location
location / {
index index.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^.+?(/.*\.php)$ $1 last;
rewrite ^ /index.php last;
}
}
# Static files location
location ~*
^.+.(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js|ico|swf)$
{
expires max;
access_log off;
break;
}
# Run php fast-cgi script
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/var/www/nova/site.ru$fastcgi_script_name;
}
location ~ ^/purge(/.*) {
fastcgi_cache_purge spnovacache $1$is_args$args;
}
}
fast cgi запускаю так.
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u nova -f /usr/bin/php5-cgi
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,95376,95376#msg-95376
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|