Giter Club home page Giter Club logo

Comments (8)

billge1205 avatar billge1205 commented on May 2, 2024 1

看起来是apache的错误 并没有走到index.php里 apache配置我不是很清楚 nginx最主要是try files的配置 apache
应该也有类似的配置

from biny.

billge1205 avatar billge1205 commented on May 2, 2024

基础路由不需要配置 /demo默认会定位到 controller目录下的 demoAction.php文件
你看下404是框架返回的还是nginx返回的 如果是nginx返回的说明nginx配置的不对 具体配置参考wiki http://www.billge.cc 环境配置

from biny.

cwwjsyc avatar cwwjsyc commented on May 2, 2024

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.

cwwjsyc avatar cwwjsyc commented on May 2, 2024

<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.

cwwjsyc avatar cwwjsyc commented on May 2, 2024

按照这个配置,我也不知道问题出在哪里了

from biny.

cwwjsyc avatar cwwjsyc commented on May 2, 2024

既然定位是给入门者使用的框架,那么应该支持Apache+PHP的环境。建议写个.htaccess文件处理下try files的问题

from biny.

billge1205 avatar billge1205 commented on May 2, 2024

嗯 谢谢你的建议 晚点会更新wiki

from biny.

billge1205 avatar billge1205 commented on May 2, 2024
已更新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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.