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

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

相关问题

后台登录界面的验证码突然不显示了,昨天还好好的。
腾讯微博登录重大错误!
首页登录页滚动页上的文字在哪里更改
discuz转换后管理员不能登陆
为什么管理员还编辑超时间
关于后台登录验证码加载不出来的个人测试及推荐配置
注册时,以及后台登录时验证码图片不显示
怎么用微信账号登录
新版本3.0.2 手机上QQ登录不了返回404错误
申请QQ登录里网站地址和回调地址要怎么写?

推荐内容

这个系统能装到百度开放云上吗?
关于近期问阿里云如何安装WECENTER的提示。
我是新手刚安装完We center 刚安装完提示要删除一个文件 请问要删除那个文件?
如何让代码与储存空间分离?
ask.icheruby.com 安装后无法正常使用
安装时提示× WeCenter 至少需要有 GD 图象处理库才能正常运行
误删install.lock.php,除了重装,还有其他方式么
phpenv安装wecenter ,把默认目录设置为wecenter根目录下的public后,图片显示不正常
安装的时候数据库无法连接的问题
Docker安装和部署WeCenter3.3.5开源问答平台