[eluser]chmod[/eluser]
I will try it.thanks Pascal Kriete.
my nginx.conf is like this:
user nginx nginx;
worker_processes 10;
error_log logs/error.log;
pid logs/nginx.pid;
events {
use epoll;
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
listen 80;
root /var/www/myproject/;
charset utf-8;
access_log logs/host.access.log main;
index index.php index.html index.htm;
error_page 500 502 503 504 /50x.html;
location / {
if (-f $request_filename) {
expires max;
break;
}
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
}
}
location = /50x.html {
root /var/www/;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:10005;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/myproject/$fastcgi_script_name/;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
}
but it can't work.
error log:
2008/12/21 01:07:08 [error] 4270#0: *1 rewrite or internal redirection cycle while processing "/index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//kohana/index.php/examples/calendar", client: 127.0.0.1, server: liujun-laptop, request: "GET /kohana/index.php/examples/calendar HTTP/1.1", host: "localhost", referrer: "http://localhost/"