欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

跳转手机wap 自己亲自做的 有大用 有大大用

server {

        listen       80;

        server_name  www.vippeixun.com vippeixun.com  www.hdfzxx.cn hdfzxx.cn xhdfzxx.com www.xhdfzxx.com www.hdfzxy.com hdfzxy.com www.fzpxxy.com fzpxxy.com xhdfzpx.com www.xhdfzpx.com xhdfzxy.com www.xhdfzxy.com fzzbxy.com www.fzzbxy.com;

        root /home/wwwroot/www_vippeixun_com/public_html;

        if ($http_user_agent ~* "android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera mobile|palmos|webos"){

             rewrite ^.*$  http://3g.vippeixun.com permanent;

        }

        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;

        location ~ \.php$ {

                proxy_pass http://127.0.0.1:88;

                include naproxy.conf;

        }

        location / {

                try_files $uri @apache;

        }

        location @apache {

                 proxy_pass http://127.0.0.1:88;

                 include naproxy.conf;

        }

}


普通分类: