Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1998940
  • 博文数量: 433
  • 博客积分: 918
  • 博客等级: 准尉
  • 技术积分: 3218
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 18:21
个人简介

你是不是暗恋我,那就给我发个消息呀,让我知道o(∩∩)o

文章分类

全部博文(433)

分类: WINDOWS

2014-05-20 22:45:43

这个是在之前使用APMServ 5.2.6出现过的问题,不知道现在情况还会不会,共享出来,以供参考
在D:\wnmp\APMServ5.2.6\nginx\conf 配置文件的http {}内,增加以下三行语句(注意去掉盘符后的路径需跟当前路径一致):

  1. worker_processes 1;  
  2.   
  3. error_log  /wnmp/APMServ5.2.6/nginx/logs/error.log  crit;  
  4.   
  5. pid        /wnmp/APMServ5.2.6/nginx/logs/nginx.pid;  
  6.   
  7. events {  
  8.     worker_connections  64;  
  9. }  
  10.   
  11. http {  
  12.     include       /wnmp/APMServ5.2.6/nginx/conf/mime.types;  
  13.     default_type  application/octet-stream;  
  14.   
  15.     #charset  gb2312;  
  16.        
  17.     server_names_hash_bucket_size 128;  
  18.     client_header_buffer_size 32k;  
  19.     large_client_header_buffers 4 32k;  
  20.        
  21.     keepalive_timeout 60;  
  22.   
  23.     fastcgi_connect_timeout 300;  
  24.     fastcgi_send_timeout 300;  
  25.     fastcgi_read_timeout 300;  
  26.     fastcgi_buffer_size 64k;  
  27.     fastcgi_buffers 4 64k;  
  28.     fastcgi_busy_buffers_size 128k;  
  29.     fastcgi_temp_file_write_size 128k;  
  30. #修改如下----------------------------------------------------------------    
  31.     client_body_temp_path /wnmp/APMServ5.2.6/nginx/client_body_temp;    
  32.     proxy_temp_path /wnmp/APMServ5.2.6/nginx/proxy_temp;    
  33.     fastcgi_temp_path /wnmp/APMServ5.2.6/nginx/fastcgi_temp;     
  34. #修改至此  
  35.     gzip on;  
  36.     gzip_min_length  1k;  
  37.     gzip_buffers     4 16k;  
  38.     gzip_http_version 1.0;  
  39.     gzip_comp_level 2;  
  40.     gzip_types       text/plain application/x-javascript text/css application/xml;  
  41.     gzip_vary on;  
  42.   
  43.     server {  
  44.         listen       85;  
  45.         server_name  localhost;  
  46.         index index.html index.htm index.php;  
  47.         root   /wnmp/APMServ5.2.6/www/htdocs;  
  48.         autoindex on;  
  49.       
  50.         location ~ .*\.(php|php5)?$ {  
  51.             fastcgi_pass   127.0.0.1:9000;  
  52.             include /wnmp/APMServ5.2.6/nginx/conf/fastcgi_params;  
  53.         }  
  54.   
  55.         log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '  
  56.              '$status $body_bytes_sent "$http_referer" '  
  57.              '"$http_user_agent" $http_x_forwarded_for';  
  58.         access_log  /wnmp/APMServ5.2.6/nginx/logs/access.log  access;  
  59.     }  
  60. }  
阅读(2062) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~