2 javaxiongxing javaxiongxing 于 2015.06.02 20:36 提问

Nginx rewrite问题,rewrite不成功

server{
listen 8000;
server_name localhost;

    rewrite 555.html /newest333.html break;

    #if (-f $request_filename) {
        rewrite 555.html newest333.html break;
        #rewrite http://www.baidu.com last;
        #rewrite ^/([a-z-A-Z]+)/?$ /index2.html?namespace=user last;
    #}

    location / {
        rewrite 555.html newest333.html break;
        ssi on; 
        ssi_silent_errors off; 
        #ssi_types text/html; 
        access_log E:/tmp/js/toc-website/logs/access_log;
        root  E:/tmp/js/toc-website/portal/html/index;
        #root   E:/tmp/js/toc-website/ng;
        index  index.html index.htm;
    }
}

 求助大神,各种写法,都不成功,这是为何呢?

1个回答

oyljerry
oyljerry   Ds   Rxr 2015.06.02 22:08

access,error log中提示信息是什么?

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!