nginx.conf配置
2016-07-05 17:22
609 查看
worker_processes 1;
events {
worker_connections 1024;
}
http {
upstream www {
server 127.0.0.1:9001 weight=5 max_fails=0 fail_timeout=5s;
}
upstream api {
server 127.0.0.1:9003 weight=5 max_fails=0 fail_timeout=5s;
}
upstream test {
server 127.0.0.1:9000 weight=5 max_fails=0 fail_timeout=5s;
}
include mime.types;
default_type application/octet-stream;
sendfile on;
fastcgi_connect_timeout 30000;
fastcgi_send_timeout 30000;
fastcgi_read_timeout 30000;
include vhost/*.conf;
}
events {
worker_connections 1024;
}
http {
upstream www {
server 127.0.0.1:9001 weight=5 max_fails=0 fail_timeout=5s;
}
upstream api {
server 127.0.0.1:9003 weight=5 max_fails=0 fail_timeout=5s;
}
upstream test {
server 127.0.0.1:9000 weight=5 max_fails=0 fail_timeout=5s;
}
include mime.types;
default_type application/octet-stream;
sendfile on;
fastcgi_connect_timeout 30000;
fastcgi_send_timeout 30000;
fastcgi_read_timeout 30000;
include vhost/*.conf;
}
相关文章推荐
- nginx SSL双向认证
- Nginx优化use参数epoll,kqueue,rtsig,eventport,poll
- Nginx源码分析 - 主流程篇 - Nginx的启动流程
- 使用nginx lua实现网站统计中的数据收集
- web安全——代理(nginx)
- nginx codeigniter 配置
- centos下安装nginx
- nginx+GraphicsMagick实现缩略图、图片实时缩放
- Apache与Nginx的优缺点
- nginx配置笔记
- Nginx整合mp4,flv模块
- Web服务图片压缩,nginx+lua生成缩略图
- Linux下,Nginx的安装、升级及动态添加模块
- 在centos里安装Nginx
- 使用Nginx+Lua(OpenResty)开发高性能Web应用
- 使用saltstack编译安装nginx
- nginx+uwsgi python应用
- nginx在linux安装笔记
- nginx配置时的一些问题
- nginx代理服务器