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

管理员登录时报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 人关注

相关问题

建议在首页 登录 框旁边设计一个返回首页按键
升级13以后微信访问无法登录。官方的微信也是这样。
QQ互联登录提示There appears to be an error:
为什么注册后可以用邮箱登录但是不能用昵称登录?
管理员密码登陆不进去求解 为什么啊
用户登录可能存在跨站脚本攻击漏洞?
网站用微信登录出现乱码:www.jxgongan.cn/bbs
微博和QQ登录功能 双双测试失败
为什么我的登录界面和你们的不一样呢?
手机第三方QQ登录显示404怎么回事

推荐内容

关于wecenter 3.2.0的安装问题,一直不成功,是什么原因?
安装wecenter提示:SQL: SELECT `aws_system_setting`.* FROM `aws_system_setting`
ask.icheruby.com 安装后无法正常使用
这个问题怎么解决?
wecenter安装出现问题
更换安装目录的话,应该怎么操作?
安装的时候数据库无法连接的问题
phpenv安装wecenter ,把默认目录设置为wecenter根目录下的public后,图片显示不正常
Docker安装和部署WeCenter3.3.5开源问答平台
Centos7部署WeCenter问答系统遇到的一些问题以及解决方法