Nginx配置
来源:互联网 发布:windows dns 缓存 编辑:程序博客网 时间:2024/06/14 12:58
默认路径 /etc/nginx/nginx.conf
#运行用户
user www-data;
#启动进程,通常设置成和cpu的数量相等
worker_processes 1;
#全局错误日志及PID文件
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
#工作模式及连接数上限
events {
use epoll;
#epoll是多路复用IO(I/O Multiplexing)中的一种方式,但是仅用于linux2.6以上内核,可以大大提高nginx的性能
worker_connections 1024;#单个后台worker process进程的最大并发链接数
# multi_accept on;
}
这里是django的配置,使用django渲染
location /{
include uwsgi_params; uwsgi_pass 127.0.0.1:8077;
}
匹配/index/login最后一个/后面的内容,如果是problemList则跳转到/index/problemList。
location = / {
rewrite ^ ip/index/login ;#ip就是本地的回环地址
}
#运行用户
user www-data;
#启动进程,通常设置成和cpu的数量相等
worker_processes 1;
#全局错误日志及PID文件
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
#工作模式及连接数上限
events {
use epoll;
#epoll是多路复用IO(I/O Multiplexing)中的一种方式,但是仅用于linux2.6以上内核,可以大大提高nginx的性能
worker_connections 1024;#单个后台worker process进程的最大并发链接数
# multi_accept on;
}
这里是django的配置,使用django渲染
location /{
include uwsgi_params; uwsgi_pass 127.0.0.1:8077;
}
匹配/index/login最后一个/后面的内容,如果是problemList则跳转到/index/problemList。
location = / {
rewrite ^ ip/index/login ;#ip就是本地的回环地址
}
0 0
- Varnish+Nginx 配置----Nginx
- Nginx-配置-nginx.conf
- 【Nginx】Nginx配置优化
- 105 nginx nginx 配置
- nginx nginx.conf 配置
- nginx 配置
- nginx 配置
- Nginx配置
- nginx配置
- NGINX配置
- nginx配置
- Nginx配置
- nginx配置
- nginx配置
- nginx 配置
- nginx 配置
- nginx配置
- Nginx配置
- linux下载命令
- 1030. Travel Plan (30)
- ASIHTTPRequest
- C++11多线程std::thread的简单使用(上)
- Java 互联网工程师要具备哪些技能或技术?
- Nginx配置
- App Distribution Guide
- Jave Web 学习之serlvet运行过程
- Hasen的linux设备驱动开发学习之旅--异步I/O
- 2014-11-8Android学习------Matrix使用方法--------动画Animation学习篇
- Linux系统之vmstat命令
- export命令
- 丢手帕问题java实现
- nyoj 289(0-1背包)