# \#配置错误

**URL:** https://forum.magentochina.org/tag/70-tag/70.md

[最新](https://forum.magentochina.org/latest.md) · [类别](https://forum.magentochina.org/categories.md) · [标签](https://forum.magentochina.org/tags.md)

---

## [Magento2图片上传失败\[File validation failed\]](https://forum.magentochina.org/t/magento2%E5%9B%BE%E7%89%87%E4%B8%8A%E4%BC%A0%E5%A4%B1%E8%B4%A5file-validation-failed/476)

<div class="topic-metadata">

**Author:** [@Shuai](https://forum.magentochina.org/u/Shuai)\
**回复:** 1\
**最近更新：:** [2018 年11 月 28 日 11:03 UTC](https://forum.magentochina.org/t/magento2%E5%9B%BE%E7%89%87%E4%B8%8A%E4%BC%A0%E5%A4%B1%E8%B4%A5file-validation-failed/476 "2018-11-28T11:03:16Z")

</div>

今天解决一个问题.用户所有的图片都不能上传。 通过开发者工具发现，返回的报错信息为: File validation failed 通过搜索发现有人也发现了这个问题: 根据提示，最后发现是自己的php没有安装fileinfo 安装后就解决了.

---

## [使用Cloudflare之后出现301重定向的问题](https://forum.magentochina.org/t/%E4%BD%BF%E7%94%A8cloudflare%E4%B9%8B%E5%90%8E%E5%87%BA%E7%8E%B0301%E9%87%8D%E5%AE%9A%E5%90%91%E7%9A%84%E9%97%AE%E9%A2%98/449)

<div class="topic-metadata">

**Author:** [@Shuai](https://forum.magentochina.org/u/Shuai)\
**回复:** 0\
**最近更新：:** [2018 年7 月 11 日 09:24 UTC](https://forum.magentochina.org/t/%E4%BD%BF%E7%94%A8cloudflare%E4%B9%8B%E5%90%8E%E5%87%BA%E7%8E%B0301%E9%87%8D%E5%AE%9A%E5%90%91%E7%9A%84%E9%97%AE%E9%A2%98/449 "2018-07-11T09:24:01Z")

</div>

一个站使用了Cloudflare之后，只要激活Cloudflare的cache状态，浏览器就一直重定向. 只要关闭就能正常访问。 发现原来是因为Cloudflare不管浏览器的请求是http还是https，都会直接访问服务器端的80端口。 而我在80端口做了重定向，最后注释掉就解决了。 这里记录下，免得自己又忘了。 if ($ssl\_protocol = “”) { return 301 https://$host$re…

---

## [Magento 2 安装ssl证书后，后台进不去，如何解决？](https://forum.magentochina.org/t/magento-2-%E5%AE%89%E8%A3%85ssl%E8%AF%81%E4%B9%A6%E5%90%8E%EF%BC%8C%E5%90%8E%E5%8F%B0%E8%BF%9B%E4%B8%8D%E5%8E%BB%EF%BC%8C%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9F/347)

<div class="topic-metadata">

**Author:** [@wolfcl](https://forum.magentochina.org/u/wolfcl)\
**回复:** 9\
**最近更新：:** [2018 年3 月 10 日 05:51 UTC](https://forum.magentochina.org/t/magento-2-%E5%AE%89%E8%A3%85ssl%E8%AF%81%E4%B9%A6%E5%90%8E%EF%BC%8C%E5%90%8E%E5%8F%B0%E8%BF%9B%E4%B8%8D%E5%8E%BB%EF%BC%8C%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9F/347 "2018-03-10T05:51:46Z")

</div>

Windows 2012 服务器 xampp集成，安装了ssl证书，并设置好了httpd-ssl.conf文件 在后台设置了启用ssl安全链接。然后提交保存后，后台访问就进不去了。自动跳转到https://这个方式。
