探索者

nginx url 重写


    server {

        listen       81;
        server_name  _;
	root /data/server/weidian/webroot/ushopci;

        location ~ .*\.(html|gif|jpg|jpeg|png|bmp|swf|js|css|ico|json|ttf|eot|svg|woff)$
        {
            expires      1h;
            root /data/server/weidian/webroot/ushopci;
        }
	if ($uri !~ .*\.(html|gif|jpg|jpeg|png|bmp|swf|js|css|ico|json|ttf|eot|svg|woff)$) {
        rewrite  (.*)                   /index.php?$1 last;
        }
        location ~* .*\.php
        {
             fastcgi_pass  127.0.0.1:9000;
             fastcgi_index index.php;
             include fastcgi.conf;
        }

    }


京ICP备12040723号 关于易寻 联系我们 手机版