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 On
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
LoadModule proxy_module modules/mod_ssl.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyPassMatch ^/mmopen/(.*) http://thirdwx.qlogo.cn/mmopen/$1
ProxyPassMatch ^/cgi-bin/(.*) https://mp.weixin.qq.com/cgi-bin/$1
#ProxyPassMatch ^/cgi-bin/(.*) https://www.baidu.com