We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
比如我的所有api,希望放在api这个子目录,然后调用: http://www.xxxx.com/api/hw/
现在提示“File not found.”
我在nginx中配置: server { listen 80; server_name www.xxxx.com; root /Users/hqr/shopping/m4;
location / { root /Users/hqr/shopping/m4; index index.php; } location /api { root /Users/hqr/shopping/m4; index index.php; try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { root /Users/hqr/shopping/m4; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
不知道应该如何配置了
The text was updated successfully, but these errors were encountered:
我想选择这个框架做一个restful api开发,因为项目急着开展,能否帮忙加qq,方便咨询:24671694
Sorry, something went wrong.
我在nginx,修改了配置: location /api { root /Users/hqr/shopping/m4; index index.php; try_files $uri $uri/ /api/index.php?$args; }
去跟踪api/index.php下面的东西,可以访问,但是不对。
http://m4.ehuishou.cn:8090/api/hw/ ,提示
{"error":"caoym\util\exceptions\NotFound","message":""}
"caoym\\phprs\\Router": { "properties": { "url_begin":1 //url_begin用于指定路由的从哪一级开始匹配,默认为0 } }
No branches or pull requests
比如我的所有api,希望放在api这个子目录,然后调用:
http://www.xxxx.com/api/hw/
现在提示“File not found.”
我在nginx中配置:
server {
listen 80;
server_name www.xxxx.com;
root /Users/hqr/shopping/m4;
不知道应该如何配置了
The text was updated successfully, but these errors were encountered: