首页天道酬勤nginx反向代理怎么传递参数,nginx带参数反向代理

nginx反向代理怎么传递参数,nginx带参数反向代理

张世龙 05-12 14:55 127次浏览

实现如下。

服务器{ listen 80; listen443ssl; server _ name nirvana.test-a.gogen; SSL _ certificate/etc/nginx/SSL/nirvana.test-a.gogen.CRT; SSL _ certificate _ key/etc/nginx/SSL/nirvana.test-a.gogen.key; proxy_connect_timeout600; proxy_read_timeout600; proxy_send_timeout600; client_max_body_size10m; # error _ page 405=200/ding/face _ matching.html; 位置/{ proxy _ pass 3358 nirvana-server-a; proxy _ next _ upstream http _ 500 http _ 502 http _ 503 errortimeoutinvalid _ header; proxy_set_headerHost$host; proxy _ set _ headerx-forwarded-for $ remote _ addr; (location(.* (.) ) html|CSS|jpg|JSON|png|(TTF )|(woff2 )|(woff )|eot|OTF|JSON prot proxy _ next _ upstream http _ 500 http _ 502 http _ 503 errortimeoutinvalid _ header; proxy_set_headerHost$host; proxy _ set _ headerx-forwarded-for $ remote _ addr; } access _ log/var/log/nginx/nirvana-test-a.log main; 备注:有很多解决方法,但这里强制将请求转换为GET

, 404错误代码,spring boot实战