EleTeam / UniShopX

EleTeam开源项目-电商全套解决方案之PHP版-Shop-for-PHP-Yii2。一个类似京东/天猫/淘宝的商城,有对应的APP支持,由EleTeam团队维护!
BSD 3-Clause "New" or "Revised" License
1.1k stars 534 forks source link

运行404 Not Found错误 #2

Open huangxinping opened 7 years ago

huangxinping commented 7 years ago

<VirtualHost *:80> ServerAdmin 908601756@qq.com DocumentRoot /var/www/html/Shop-PHP-Yii2/backend/web ServerName local.eleteambackend.ygcr8.com ErrorLog "logs/local.eleteambackend.ygcr8.com-error_log" CustomLog "logs/local.eleteambackend.ygcr8.com-access_log" common

127.0.0.1 local.eleteam.ygcr8.com 127.0.0.1 local.eleteambackend.ygcr8.com 127.0.0.1 local.eleteamdata.ygcr8.com 127.0.0.1 local.eleteamapi.ygcr8.com 127.0.0.1 local.eleteamwap.ygcr8.com

我照ReadMe上的环境已经搭建好了,但是访问http://local.eleteamwap.ygcr8.com/时,首页是可以出现的,但是点击底部“分类”分页时,显示404 Not Found。 Not Found

The requested URL /category was not found on this server. Apache/2.4.7 (Ubuntu) Server at local.eleteamwap.ygcr8.com Port 80

请问,我还还需要配置什么?还是您github的代码没有全?

并且在访问其他页面时,会常见出现/user/login 404,例如访问: http://local.eleteambackend.ygcr8.com,就会直接跳转到:http://local.eleteambackend.ygcr8.com/user/login,然后就是: Not Found

The requested URL /user/login was not found on this server. Apache/2.4.7 (Ubuntu) Server at local.eleteambackend.ygcr8.com Port 80

huangxinping commented 7 years ago

screenshot from 2016-11-19 22 15 55

上面是我唯一可返回的页面截图:http://local.eleteamwap.ygcr8.com

EleTeam commented 7 years ago

问题已修复

jasonpp commented 7 years ago

你的APP数据请求是请求的本地还是网络,网络数据丢失...不知道配置到本地访问本地会不会用这种现象,app做的功能太过于简单化了.

EleTeam commented 7 years ago

请求的都是网络数据,框架搭好了流程跑通了,其它的都是搭积木

jasonpp commented 7 years ago

我也在改你的代码,昨天弄了一天,搞的我头大.我对你的服务器端很敢兴趣,能不能把具体的配置在github上再次说明一下,我还是无法配出来并跑到本地上.希望再接再厉啊朋友.

EleTeam commented 7 years ago

先学会yii2的安装吧,http://www.mafutian.net/122.html