-
NGINX反向代理去掉location
发布于:2020-08-17 作者:Garany 评论(0) 引用(0) 浏览(3139) 分类:破万卷书
后端真实接口地址 http://127.0.0.1:8811/platform/region/allProvince 前端访问接口地址 http://xxx.abc.com/api/platform/region/allProvince 实际情况就是nginx在向后端请求接口的时候去掉api,即重写url location ~ /api/ { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://127.0.0.1:8811; proxy_read_timeout 150; proxy_buffering off; proxy_buffer_size 128k; proxy_buffers 256 128k; ...
-
nginx-status
发布于:2019-07-15 作者:Garany 评论(0) 引用(0) 浏览(913) 分类:破万卷书
1.开启NGINX状态页stub_status # vim /etc/nginx/conf.d/default.conf server { listen *.80 default_server; server_name localhost _; location / { return 403; } location /nginx-status { stub_status on; access_log off; allow 127.0.0.1; deny all; } } 2.检测配置文件,重启NGINX # nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is success...
-
nginx反向代理报错 an upstream response is buffered to a temporary file
发布于:2018-05-30 作者:Garany 评论(0) 引用(0) 浏览(1070) 分类:破万卷书
调整nginx的error日志到warn级别,发现大量的warn错误 2018/05/30 11:51:40 [warn] 14416#0: *33213457 an upstream response is buffered to a temporary file /usr/local/nginx/proxy_temp/3/88/0002331883 while reading upstream, client: 123.138.233.236, server: www.xxxxx.com, request: "GET /html_app/img/dashi/touxiang/37.jpg HTTP/1.1", upstream: "http://127.0.0.1:65012/html_app/img/dashi/touxiang/37.jpg", host: "www.xxxxx.com", referrer: "http://www.xxxxx.com/html_app/dashi.html" 1...
-
使用 Let’s Encrypt 为 nginx+tomcat 开启 https
发布于:2016-12-20 作者:Garany 评论(0) 引用(0) 浏览(1565) 分类:破万卷书
有关 Let’s Encrypt 详细请参看本站另一篇博文 一、生成证书 # git clone https://github.com/letsencrypt/letsencrypt # cd letsencrypt/ # ./letsencrypt-auto --debug certonly --email gxxxxy@163.com --standalone -d ssl.xxxxx.com # echo $? 二、修改tomcat server.xm # vim /tomcat_PATH/conf/server.xml <Service name="Catalina"> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redire...
最新微语
最新文章
链接
最新评论
- EdwardSoype 说:
十字路口,我们分着走。你走我的泪,... - 热搜 说:
文章还不错支持一下 - 头条 说:
文章非常好超喜欢 - 新闻头条 说:
文章非常好超喜欢 - 今日头条新闻 说:
文章还不错支持一下