Nginx下fastcgi
server { listen 80;server_nameapp.i.enet.com.cn appmarket.i.enet.com.cn;
root /home/httpd/androidmarket;
#index index.shtml index.html index.htm;
autoindex on;
#charset koi8-r;
access_loglogs/app.access.logmain;
error_log logs/app.error.log;
default_typetext/plain;
location / {
indexindex.shtml index.html index.htm;
#rewrite ^/$ /index.php last;
#rewrite ^/(?!index\.php|robots\.txt|images|js|styles)(.*)$ /index.php/$1 last;
}
#error_page404 /404.html;
error_page 500 502 503 504/50x.html;
location = /50x.html {
root html;
}
location ~ .*\.php? {
#fastcig 使用socket方式比较快...
fastcgi_passunix:/tmp/nginx.socket;
# fastcgi_pass127.0.0.1:9000;
# fastcgi_index index.php;
#下面只是了一些fastcgi.conf中定义的一些公共的东西 如果没有定义请自己开启
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_paramPATH_INFO $fastcgi_path_info;
fastcgi_paramPATH_TRANSLATED $document_root$fastcgi_path_info;
# fastcgi的conf路径
include /usr/local/nginx/conf/fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# denyall;
#}
}
页:
[1]