Comments (8)
看起来是apache的错误 并没有走到index.php里 apache配置我不是很清楚 nginx最主要是try files的配置 apache
应该也有类似的配置
from biny.
基础路由不需要配置 /demo默认会定位到 controller目录下的 demoAction.php文件
你看下404是框架返回的还是nginx返回的 如果是nginx返回的说明nginx配置的不对 具体配置参考wiki http://www.billge.cc 环境配置
from biny.
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
biny.site
Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.21
from biny.
<VirtualHost *:80>
ServerName biny.site
DocumentRoot "C:/XAMMP/htdocs/biny/web"
<Directory "C:/XAMMP/htdocs/biny">
AllowOverride All
Order Allow,Deny
Allow from all
from biny.
按照这个配置,我也不知道问题出在哪里了
from biny.
既然定位是给入门者使用的框架,那么应该支持Apache+PHP的环境。建议写个.htaccess文件处理下try files的问题
from biny.
嗯 谢谢你的建议 晚点会更新wiki
from biny.
已更新wiki 试试看下面这个配置
DocumentRoot "/data/billge/biny/web/"
<Directory "/data/billge/biny/web/">
RewriteEngine on
# 如果请求的是真实存在的文件或目录,直接访问
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# 如果请求的不是真实文件或目录,分发请求至 index.php
RewriteRule . index.php
# ...other settings...
</Directory>
from biny.
Related Issues (20)
- 数据库缓存的问题想请教一下 HOT 14
- Form的自定义验证问题 HOT 2
- 维护模式开启报错 HOT 1
- 403 Forbidden nginx HOT 4
- 部署在IIS7.5老是500错误 HOT 2
- Biny运行在PHP8.0 HOT 2
- Biny有更新版本计划吗? HOT 1
- Biny中如何将Token添加到请求头Header中? HOT 3
- 数据库操作 + - 不支持浮点数操作 HOT 3
- 请问,'not like' 要怎么写。 HOT 2
- DAO::get('xxx') 报错 HOT 2
- 我根据文档学着写restful API,但未能成功 HOT 6
- 加入Restful的OPTIONS默认回复200的开关 HOT 3
- 新建的Service没有生效 HOT 9
- 请问,使用虚拟主机无法指定 web 为根目录,如何修改? HOT 2
- 如何在Biny中实现JWT和JWE?
- 使用 axios 发送POST 请求时,无法正常接收到数据 HOT 2
- 在同一个方法中调用两个不同的$model 时, 后面的那个无法正常调用 HOT 5
- 反馈一个路由配置相关的Bug HOT 9
- 请问是否可以用swoole替代nginx作为服务器
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biny.