微信 /MP_verify_XXX.txt 文件驗證 nginx 配置

1.微信須要部署一個文件在服務器上,才能去驗證成功html

2. /MP_verify_XXX.txtnginx

3.ngixn配置服務器

upstream mainServer {
      server 127.0.0.1:8000;
}

server {
    listen       80;
    server_name  www.xxx.com;
    root         /usr/share/nginx/html;
    large_client_header_buffers 4 1m;

    
    location / {
     	index  index.html index.htm;
	    proxy_pass http://mainServer;
    }

   location = /MP_verify.txt {
        root         /usr/share/nginx/html;
   }

    error_page 404 /404.html;
        location = /40x.html {
    }

    error_page 500 502 503 504 /50x.html;
        location = /50x.html {
    }

}
相關文章
相關標籤/搜索