# install by wang.qingsong on 2022-10-11 worker_processes 2; error_log logs/error.log info; pid logs/nginx.pid; events { worker_connections 1024; } http { include 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 logs/access.log main; sendfile on; keepalive_timeout 65; gzip on; server { listen 80; server_name localhost; access_log logs/host.access.log main; location / { proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:9005; } } }
相关推荐
nginx.conf配置文件,反向代理,负载均衡--轮询、权重、IPHASH等
nginx1.21.5 nginx.conf配置文件
Notepad++ 自定义 nginx.conf 文件语法高亮的配置文件 使用教程:点击语言-自定义语言格式-导入(下载的xml文件)-重启notepad++,即可使用
这是nginx安装时需要的文件之一nginx.conf
nginx.conf配置文件下载
nginx.conf例子 多域名配置例子
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配置文件(nginx.conf)配置详解[定义].pdf
nginx.conf的配置访问ssl证书
nginx.conf 例子
nginx配置文件,nginx代理配置
nginx nginx.conf配置文件,下载后请根据自己的实际环境做相应的修改
整理出一份比较全的nginx配置的详细,其中注明了比较常用到的一些配置说明,希望对初学者有帮助