【发布时间】:2015-05-25 14:07:02
【问题描述】:
从 github 来源克隆 Magento2:https://github.com/magento/magento2
安装很顺利。但是,当浏览器下载静态文件时出现了一些问题。多个文件丢失:
pub/static/frontend/Magento/blank/en_US/*
安装顺利,AFAIK 所有静态文件都已加载。
附言
这可能有某种关联,但似乎 URL 没有正确重写 - 抛出 404 页面。我想有一些很强的相关性,但我看不出具体在哪里?做了一些研究(应用它们)但没有结果
- The requested URL was not found on this server (Magento)
- Magento - Currency - 404 Not Found - The requested URL /directory/currency/switch/currency/USD/ was not found on this server
- https://magento.stackexchange.com/questions/22245/the-requested-url-customer-account-login-was-not-found-on-this-server
【问题讨论】:
-
你在什么服务器上? apache还是nginx?
-
您的 nginx 配置设置是否与建议的相同? github.com/magento/magento2/blob/develop/nginx.conf.sample 如果您可以访问命令行,请尝试运行
bin/magento setup:static-content:deploy并再次检查权限
标签: php apache magento magento2