Home  >  Article  >  Backend Development  >  nginx配置多目录访问-之phalcon如何配置

nginx配置多目录访问-之phalcon如何配置

WBOY
WBOYOriginal
2016-06-06 20:31:471062browse

@美丽的格调 http://segmentfault.com/q/1010000000523580?name=nginx&description=...
我按照这个方法配置phalcon的项目,但是所有的路由都重定向到了index/index,不知道是怎么了,请问大家遇到过这种情况吗?

回复内容:

@美丽的格调 http://segmentfault.com/q/1010000000523580?name=nginx&description=...
我按照这个方法配置phalcon的项目,但是所有的路由都重定向到了index/index,不知道是怎么了,请问大家遇到过这种情况吗?

这个问题解决了
location /blog {
if (-f $request_filename) { break; }
rewrite ^/blog/(.*)$ /blog/public/index.php?_url=/$1;
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn