current position:Home>How to solve the post request return 405 of nginx reverse proxy to HTML page

How to solve the post request return 405 of nginx reverse proxy to HTML page

2022-04-29 17:25:47Billion cloud speed

NGINX Reverse proxy pair HTML Page POST Request returns 405 How to solve

This article mainly explains “NGINX Reverse proxy pair HTML Page POST Request returns 405 How to solve ”, The explanation in the text is simple and clear , Easy to learn and understand , Next, please follow Xiaobian's ideas and go deeper slowly , Study and learn together “NGINX Reverse proxy pair HTML Page POST Request returns 405 How to solve ” Well !

The implementation is as follows :

server {    listen	80;    listen	443 ssl;    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_timeout 600;    proxy_read_timeout 600;    proxy_send_timeout 600;    client_max_body_size 10m;    #error_page 405 =200 /ding/face_matching.html;    location / {        proxy_pass http://nirvana-server-a;        proxy_next_upstream http_500 http_502 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*|\woff2*|\woff*|eot|otf|ttf|json|cur|woff|svg|woff2|m3u8|ts|mp3)$ {        proxy_method GET;        proxy_pass http://nirvana-browser-a;        proxy_next_upstream http_500 http_502 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;}

Thank you for reading , That's all “NGINX Reverse proxy pair HTML Page POST Request returns 405 How to solve ” Content. , After learning this article , I'm sure you're right NGINX Reverse proxy pair HTML Page POST Request returns 405 I have a deeper understanding of how to solve this problem , The specific use needs to be verified by practice . This is billion speed cloud , Xiaobian will push you articles with more relevant knowledge points , Welcome to your attention !

copyright notice
author[Billion cloud speed],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204291539467868.html

Random recommended