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

管理员登录时报404

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

查看全部 2 个回答

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 人关注

相关问题

我的wecenter 管理员密码进不去,怎么办
用户名片处的登录按钮调整异常,求解决!如下图所示
验证码不显示,前两天还行的,现在登录不了后台了
后台登录问题
有用友言的单点登录的吗?
前台管理员修改会员认证出错
整合ucenter后管理员无法登陆后台了。。
ie登录页不显示背景?
3.0 beta1本地测试,用邮箱取回密码时报错
登陆之后最新动态报错了,我用的腾讯微博账号登录的,具体错误提示如下

推荐内容

更换安装目录的话,应该怎么操作?
wecenter安装出现问题
安装过程中 添加管理员账户后就报http500错误(和图片上邮件地址未填无关),具体内容怎么看
新手安装出现服务器不支持怎么解决?
Centos7部署WeCenter问答系统遇到的一些问题以及解决方法
数据库地址 账号 密码 数据库名称 正确为什么安装不成功
更新威望数据 出错。。
这个系统能装到百度开放云上吗?
我是新手刚安装完We center 刚安装完提示要删除一个文件 请问要删除那个文件?
Docker安装和部署WeCenter3.3.5开源问答平台