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

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

WBOY
Release: 2016-06-06 20:31:47
Original
1114 people have browsed it

@美丽的格调 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;
}

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template