备份记录,随便笔记
#######################################################################
user nginx;
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
#----------------------------------------------------------------------
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name chint.weiwei.cn;
location /en {
proxy_pass http://192.168.0.1:8082;
}
location /pt {
proxy_pass http://192.168.0.2:8081;
}
location ~* /file-service {
client_max_body_size 100m;
proxy_pass http://172.19.6.133:8898;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
server {
listen 80;
server_name ecmp.weiwei.cn;
location / {
proxy_pass http://192.168.0.1:8081;
}
location ~* /file-service {
client_max_body_size 100m;
proxy_pass http:/192.168.0.2:8898;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
相关推荐
nginx.conf配置文件,反向代理,负载均衡--轮询、权重、IPHASH等
nginx1.21.5 nginx.conf配置文件
Notepad++ 自定义 nginx.conf 文件语法高亮的配置文件 使用教程:点击语言-自定义语言格式-导入(下载的xml文件)-重启notepad++,即可使用
这是nginx安装时需要的文件之一nginx.conf
nginx.conf配置文件下载
nginx.conf例子 多域名配置例子
Nginx配置文件(nginx.conf)配置详解[定义].pdf
nginx.conf已经配置到了D:\\ftp目录,可自行更改,双击start.cmd 启动服务,stop.cmd关闭服务,其他电脑可以通过 ftp://ip/文件名 来访问服务器D盘ftp下文件
django项目上线时完整的nginx.conf文件,直接覆盖上去,修改域名和项目路径就OK了,直接拿走就好,详细部署上线流程我的博客里油介绍
本资源是专门针对本博文的, nginx的反向代理的简单配置文件,给大家使用时做参考,拿走不谢,怎么一定要50字呢?
1、对nginx中的一些经典节点注释。2、节点有user、worker_processes、error_log、pid、worker_rlimit_nofile、worker_connections、multi_accept、use、include、default_type、client_header_buffer_size、upstream...
nginx.conf的配置访问ssl证书
nginx.conf 例子
nginx配置文件,nginx代理配置
nginx nginx.conf配置文件,下载后请根据自己的实际环境做相应的修改
整理出一份比较全的nginx配置的详细,其中注明了比较常用到的一些配置说明,希望对初学者有帮助