location ~ /mmopen/
{
proxy_set_header Host thirdwx.qlogo.cn;
rewrite /(.+)$ /$1 break;
proxy_pass http://thirdwx.qlogo.cn;
}
if (!-e $request_filename) {
rewrite ^/(?!mmopen)(.*) /index.php?s=$1 last;
break;
}
#保證如下模塊加載 SSLProxyEngine OnSSLProxyVerify noneSSLProxyCheckPeerCN offSSLProxyCheckPeerName offLoadModule proxy_module modules/mod_ssl.soLoadModule proxy_module modules/mod_proxy.soLoadModule proxy_http_module modules/mod_proxy_http.soProxyPassMatch ^/mmopen/(.*) http://thirdwx.qlogo.cn/mmopen/$1ProxyPassMatch ^/cgi-bin/(.*) https://mp.weixin.qq.com/cgi-bin/$1#ProxyPassMatch ^/cgi-bin/(.*) https://www.baidu.com