以apache环境为例; 找到 nginx 规则里 的 m.***.com.conf 改成如下
server {
listen 80;
root /home/wwwroot/网站目录名/public_html/mobile;
server_name m.网址;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 405 /errpage/405.html;
error_page 503 /errpage/503.html;
location ~ \.php$ {
proxy_pass https://127.0.0.1:88;
include naproxy.conf;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri @apache;
}
location @apache {
internal;
proxy_pass https://127.0.0.1:88;
include naproxy.conf;
}
}
























18605917465
客服QQ