在\ P或\ p在" \ php $"之后的nginx未知属性名称at" hp $"在nginx.conf中

时间:2014-07-02 19:32:44

标签: magento nginx

嗨,当我运行bellow命令

服务nginx configtest我收到错误如bellow screenshot

enter image description here

有人可以帮我解决一下吗?

这是我的配置文件的53行号代码

location ~ \php$ {
    if (!-e $request_filename) { rewrite / /index.php last; }

    expires        off;
    fastcgi_pass   luxicocoukbackend;
    fastcgi_param  HTTPS $fastcgi_https;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    #fastcgi_param  MAGE_RUN_CODE default;
    #fastcgi_param  MAGE_RUN_TYPE store;
    include        fastcgi_params;
}

1 个答案:

答案 0 :(得分:2)

反斜杠应该逃避点

location ~ \.php$