该问题已被锁定!
2
关注
3470
浏览

管理员登录时报404

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
fanta 超级管理员 用户来自于: 安徽省合肥市
2021-08-23 15:10

使用集成面板安装,如宝塔,小皮等,那里有集成的配置,包括伪静态

zhangqing113 初级会员 用户来自于: 安徽省合肥市
2021-08-23 08:59

还是伪静态的问题,少写了几行代码


user www;
worker_processes 1;
events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;

server {
listen 80;
server_name www.yelook.com;
root /home/www/htdocs;

location / {
index index.html index.htm index.php;
autoindex on;
if (!-e $request_filename)
{
rewrite ^(.*)$ /index.php;
}
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

include fastcgi_params;
}
}
}

貌似就少了这2行。加上就ok了。

不容易



关于作者

问题动态

发布时间
2021-08-20 16:03
更新时间
2021-08-23 15:10
关注人数
2 人关注

相关问题

关注微信公众帐号,并通过微信登录网站
MYSQL8.0 管理员账号绑定邮箱后变注册会员 进不去后台
升级3.0 B1版本时报如下错误。
0.7版回复框出不能显示上传附件,只有超级管理员才显示?
官方网站登录密码被暴露
管理员,为什么安装过程会出现这种状况
只有服务号才可以微信授权登录么?
网站关闭后还会跳转到登录页面的解决方法!
第三方登录效率问题(问题已更新)
qq登录提示app is closed 100011

推荐内容

Centos7部署WeCenter问答系统遇到的一些问题以及解决方法
发生错误 返回的信息 ucenter client not installed 如何解决?
安装跳转不了下一步
新手安装出现服务器不支持怎么解决?
关于wecenter 3.2.0的安装问题,一直不成功,是什么原因?
autosize is not a function
3.19版本上传了为什么解压出来只有4K啊
请问这个程序有没有其他的模版,如何安装?
安装过程中 添加管理员账户后就报http500错误(和图片上邮件地址未填无关),具体内容怎么看
wecenter安装出现问题