Home > Backend Development > PHP Tutorial > nginx ajax transfer parameter is null

nginx ajax transfer parameter is null

WBOY
Release: 2016-07-28 08:28:55
Original
1295 people have browsed it

When I was working on a project today, I found that the parameter for the ajax request action was null. The query obtained the URL forwarded through nginx. The proxy_set_header parameter transmission must be set. The following is the nginx setting:

ajax nginx request parameter:

location /xxxxxx{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header
The above introduces the nginx ajax transmission parameter is null, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template