完蛋了!换服务器迁移网站出问题了!!!
你是不是两个域名?配置文件跟根目录的conf.php用同一个试试~
Protoss 我有一个1fxd.cn,这个域名打开就自动下载一个文件一脸懵逼
<?php
/*
- This file is part of Flarum.
* - For detailed copyright and license information, please view the
- LICENSE file that was distributed with this source code.
*/
$site = require ‘./site.php’;
/*
|——————————————————————————-
| Accept incoming HTTP requests
|——————————————————————————-
|
| Every HTTP request pointed to the web server that cannot be served by simply
| responding with one of the files in the “public” directory will be sent to
| this file. Now is the time to boot up Flarum’s internal HTTP server, which
| will try its best to interpret the request and return the appropriate
| response, which could be a JSON document (for API responses) or a lot of HTML.
|
*/
$server = new Flarum\Http\Server($site);
$server->listen();
<?php
/*
This file is part of Flarum.
*
For detailed copyright and license information, please view the
LICENSE file that was distributed with this source code.
*/
$site = require ‘./site.php’;
/*
|——————————————————————————-
| Accept incoming HTTP requests
|——————————————————————————-
|
| Every HTTP request pointed to the web server that cannot be served by simply
| responding with one of the files in the “public” directory will be sent to
| this file. Now is the time to boot up Flarum’s internal HTTP server, which
| will try its best to interpret the request and return the appropriate
| response, which could be a JSON document (for API responses) or a lot of HTML.
|
*/
$server = new Flarum\Http\Server($site);
$server->listen();
这个怎么解决啊!!!!!
这个就不懂了,不过我建议你如果是跟我一样是程序小白的话,
对迁移这事,我上个月迁移10多次服务器,每次都是导出数据库,下载图片文件,其它都不要,直接安装一个新的Flarum,再导入数据,重装插件。
其本是不会出现什么问题。整个过程大约30分钟,比打包文件,下载上传估计还快。
你连源码都搞丢了。这算什么迁移?
谁能救救我QAQ
最抽象的是,我访问我的域名1fxd.cn没有用直接就是下载一个文件,这个不知道怎么解决
解决了是解析的问题导致下载文件的