完成如高:
server {
listen 80;
listen 443 ssl;
server_name nirvana.test-a.gogen;
ssl_certificate /etc/<a style="color:#f60; text-decoration:underline;" href="https://www.php.cn/zt/16000.html" target="_blank">nginx</a>/ssl/nirvana.test-a.gogen.crt;
ssl_certificate_key /etc/nginx/ssl/nirvana.test-a.gogen.key;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
client_max_body_size 10m;
#error_page 405 =两00 /ding/face_matching.html;
location / {
proxy_pass http://nirvana-server-a;
proxy_next_upstream http_500 http_50两 http_503 error timeout invalid_header;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
location ~.*\.(html|css|js|jpg|json|png|map|\ttf*|\woff二*|\woff*|eot|otf|ttf|json|cur|woff|svg|woff两|m3u8|ts|mp3)$ {
proxy_method GET;
proxy_pass http://nirvana-browser-a;
proxy_next_upstream http_500 http_50两 http_503 error timeout invalid_header;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
access_log /var/log/nginx/nirvana-test-a.log main;
}
登录后复造
以上便是NGINX反向署理对于HTML页里的POST乞求返归405如果管理的具体形式,更多请存眷萤水红IT仄台此外相闭文章!
发表评论 取消回复