双环境下wap绑定2级域名伪静态设置


来源: https://destoon.cc/ 时间: 2019-03-01 19:52:03 人气: 358 评论: 0

以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 http://127.0.0.1:88;
                include naproxy.conf;
        }
        location ~ /\.ht {
                deny  all;
        }
        location / {
                try_files $uri @apache;
        }
        location @apache {
                 internal;
                 proxy_pass http://127.0.0.1:88;
                 include naproxy.conf;
        }
}

双环境下wap绑定2 常见问题

评论
346655709