随笔分类 -  运维合集 / 中间合集

摘要:解决方案看了下讨论区说的方案,问题出现在nginx的配置文件,需要修改nginx.conf文件。在linux终端中敲入vim /etc/nginx/nginx.conf,找到location这个位置,配置文件如下所示: server { listen 80; server_name school.g 阅读全文
posted @ 2019-11-29 15:46 善战者求之于势 阅读(1888) 评论(1) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-25 15:16 善战者求之于势 阅读(157) 评论(0) 推荐(0)
摘要:1.常见默认nginx.conf配置日志格式 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_use 阅读全文
posted @ 2019-08-22 08:34 善战者求之于势 阅读(9934) 评论(0) 推荐(0)
摘要:1.携带目录调转到后端,后端无目录,location配置如下 例子: i2.jusdacfj.com/ideas_edi/——10.0.2.137:7040/10.0.2.138:7040 location ^~/ideas_edi/ { ##携带"/" proxy_pass http://edi1 阅读全文
posted @ 2019-08-22 08:31 善战者求之于势 阅读(529) 评论(0) 推荐(0)
摘要:1.需要安装stream模块2.在nginx.conf默认配置文件添加如下配置即可stream { log_format tcp '$remote_addr [$time_local] ' '$protocol $status $bytes_sent $bytes_received ' '$sess 阅读全文
posted @ 2019-08-22 08:22 善战者求之于势 阅读(635) 评论(0) 推荐(0)