ngnix-fastcgi通用配置
来源:互联网 发布:虚拟机 for mac 编辑:程序博客网 时间:2024/05/16 06:08
user daemon daemon;
worker_processes 8;
worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000;
error_log /export/nginx/logs/nginx_error.log warn;
pid /export/nginx/logs/nginx.pid;
worker_rlimit_nofile 65535;
events
{
use epoll;
worker_connections 65535;
}
http
{
include mime.types;
default_type application/octet-stream;
server_tokens off;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';
#charset utf-8;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 300m;
sendfile on;
tcp_nopush on;
keepalive_timeout 0;
tcp_nodelay on;
client_body_buffer_size 512k;
fastcgi_intercept_errors on;
proxy_connect_timeout 90;
proxy_read_timeout 180;
proxy_send_timeout 180;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
server_name_in_redirect off;
proxy_hide_header X-Powered-By;
gzip on;
gzip_min_length 100;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
error_page 400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 506 = http://www.example.com/error.html;
include domains/*;
###########status#########
server
{
listen 80;
server_name child.example.com;
set $web_root /export/www;
root $web_root;
index index.html index.htm admin.php;
location ~ \.php($|/)
{
include fastcgi_params.default;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $web_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
}
- ngnix-fastcgi通用配置
- ngnix下conf通用设置方法(php fastcgi)
- ngnix下conf通用设置方法(php fastcgi)
- ngnix 配置
- ngnix配置
- Ngnix配置
- ngnix配置
- Ngnix安装与配置
- ngnix 防盗链配置
- ngnix反向代理配置
- Ngnix 安装及配置
- ngnix配置及实战
- ngnix 配置错误页面
- tomcat 与 ngnix配置
- ngnix负载均衡配置
- fastcgi配置
- fastcgi配置
- Fastcgi配置
- Oracle clusterware的组成
- cookie和session的区别
- 每天一道算法题(24)——自定义幂函数pow
- 优化数据页面(18)——标注关键字
- CloudXNS首次使用体验
- ngnix-fastcgi通用配置
- iOS学习4_UITableView的使用
- String 的那点事儿
- 优化数据页面(19)——提供排序
- 详解SESSION与COOKIE的区别
- C++获取文件路径
- 在windows下面调试linux代码
- 电子邮件营销在数字营销浪潮中扮演关键角色
- Missing library: xdoclet-1.2.1.jar. Select the home directory for XDoclet. 1.2.1