Home > Backend Development > PHP Tutorial > nginx directly returns nginx apache nginx php nginx rewrite

nginx directly returns nginx apache nginx php nginx rewrite

WBOY
Release: 2016-07-29 08:54:00
Original
1289 people have browsed it

I used the WeChat public account platform a few days ago. The callback address can be configured in the developer tools, and WeChat will push some events back to the developer through this address. The URL needs to be authenticated when configuring for the first time. To put it simply, it sends a string to the server specified by the URL, and then the server must return a certain string in the string, which is echostr.

nginx 配置,nginx 安装,nginx下载,nginx windows,nginx负载均衡配置,nginx 重启,nginx apache,nginx php,nginx rewrite

I use Nginx here, and ng is transferred to tomcat, so just return echostr directly in ng. Specific configuration:

location /kmgw/{

proxy_pass .......

proxy_type default;

return 200 $arg_echostr

}

The above introduces the direct return of nginx, including the content of nginx. 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