最近文章更新
- 1966年生产的广州 珠江 SB6-2型 ..
- HD6870/6850全面评测,让你大饱眼..
- 百万现金刚入门 中国7大奢华私人..
- 罕见4G希捷酷鱼系类万转SCSI服务..
- IBM 6x86MX PR333 CPU
- 采用MC68000 CPU的进口老计算机主..
- 1989年IBM-XT机软驱
- BC3型饱和标准电池拆解
- JUKO ST
- Kingston 品牌的CPU
- YAMAHA 719
- intel 30线 内存条
- intel mmx cpu和主板
- 首款xHCI 1.0正式版标准USB 3.0控..
- 《极品飞车:地下狂飙》纹理MOD视..
- USB接口加扩展子卡:影驰神秘GTX..
- 阿里巴巴将发布浏览器 核心不是W..
- 黄仁勋大秀NVIDIA LOGO纹身
- Google Earth上的奇特卫星图片
- 开火!讯景限量版HD 5970详细测试..
相关文章链接
本类文章排行
最新新闻资讯
本周下载排行
- ArcSoft TotalMedia Theatre 3 P..
- Windows 7 Build 7600 16385 RTM..
- 《姗姗来迟软件光盘+飞扬PE工具箱..
- MSDN Windows 7 RTL 7600 Ultima..
- Windows 7 Home Premium (x86) -..
- Windows Virtual PC (x86) - (Mu..
- MSDN Windows 7 Language Pack X..
- Windows 7 Language Pack (x64) ..
- Windows 7 Starter (x86) - DVD ..
- Windows 7 Professional (x86) -..
- Windows 7 Language Pack (x86) ..
- Windows 7 Home Premium (x64) -..
- Windows XP Mode (x86, x64) - (..
- 7127.0.090507-1820_x86fre_clie..
- DMG2ISO
本月下载排行
- ArcSoft TotalMedia Theatre 3 P..
- Windows 7 Build 7600 16385 RTM..
- 《姗姗来迟软件光盘+飞扬PE工具箱..
- MSDN Windows 7 RTL 7600 Ultima..
- MSDN Windows 7 Language Pack X..
- Windows 7 Home Premium (x86) -..
- Windows 7 Language Pack (x64) ..
- Windows 7 Professional (x86) -..
- 7127.0.090507-1820_x86fre_clie..
- Windows 7 Professional (x64) -..
- Windows 7 Starter (x86) - DVD ..
- Windows Virtual PC (x86) - (Mu..
- Windows 7 Ultimate (x64) - DVD..
- Lenovo Windows 7 Ultimate OEM ..
- Windows 7 Home Premium (x64) -..
- 阅览次数: 文章来源: 原文作者: 整理日期: 2010-07-27
- user www www;
- worker_processes 8;
- worker_cpu_affinity 00000001 00000010 00000100 00001000
00010000 00100000 01000000; - error_log /www/log/Nginx_error.log crit;
- pid /usr/local/Nginx/Nginx.pid;
- worker_rlimit_nofile 204800;
- events
- {
- use epoll;
- worker_connections 204800;
- }
- http
- {
- include mime.types;
- default_type application/octet-stream;
- charset utf-8;
- server_names_hash_bucket_size 128;
- client_header_buffer_size 2k;
- large_client_header_buffers 4 4k;
- client_max_body_size 8m;
- sendfile on;
- tcp_nopush on;
- keepalive_timeout 60;
- fastcgi_cache_path /usr/local/Nginx/fastcgi_cache levels=1:2
- keys_zone=TEST:10m
- inactive=5m;
- fastcgi_connect_timeout 300;
- fastcgi_send_timeout 300;
- fastcgi_read_timeout 300;
- fastcgi_buffer_size 4k;
- fastcgi_buffers 8 4k;
- fastcgi_busy_buffers_size 8k;
- fastcgi_temp_file_write_size 8k;
- fastcgi_cache TEST;
- fastcgi_cache_valid 200 302 1h;
- fastcgi_cache_valid 301 1d;
- fastcgi_cache_valid any 1m;
- fastcgi_cache_min_uses 1;
- fastcgi_cache_use_stale error timeout invalid_header http_500;
- open_file_cache max=204800 inactive=20s;
- open_file_cache_min_uses 1;
- open_file_cache_valid 30s;
- tcp_nodelay on;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_http_version 1.0;
- gzip_comp_level 2;
- gzip_types text/plain application/x-javascript text/css
application/xml; - gzip_vary on;
- server
- {
- listen 8080;
- server_name backup.aiju.com;
- index index.php index.htm;
- root /www/html/;
- location /status
- {
- stub_status on;
- }
- location ~ .*\.(php|php5)?$
- {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fcgi.conf;
- }
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$
- {
- expires 30d;
- }
- log_format access '$remote_addr - $remote_user
[$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" $http_x_forwarded_for';
- access_log /www/log/access.log access;
- }
- }
Nginx配置文件基本应用参考手册
Nginx配置文件基本应用参考手册
Nginx配置文件有很多需要我们注意很多问题,其中在进行user配置的时候就需要我们引起重视,我们在不断的使用中就会发现这一点,下面是一个简单的Nginx配置文件:
Nginx配置文件引用
上面的代码就是对Nginx配置文件简单问题的详细介绍。
查看所有评论
网友对Nginx配置文件基本应用参考手册的评论
我要发表评论