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

管理员登录时报404

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

为什么被折叠? 0 个回复被折叠
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支持微信登录吗?需要二次开发?
后台登录验证码无效
微信扫码登录
大家帮我看看,新安装3.1.9版本登录后台的时候就显示这样(求付费解决)
用QQ登录注册后不能自动提取QQ头像做为网站会员头像
抱歉, 你的账号已经被禁止登录 ?
无法添加管理员
全新安装 WeCenter 3.1.7 输入管理员帐号密码就报500错误
3.5用户头像,管理员头像,分类图标无法更改

推荐内容

3.19版本上传了为什么解压出来只有4K啊
关于wecenter 3.2.0的安装问题,一直不成功,是什么原因?
关于近期问阿里云如何安装WECENTER的提示。
数据库地址 账号 密码 数据库名称 正确为什么安装不成功
Centos7部署WeCenter问答系统遇到的一些问题以及解决方法
这个系统能装到百度开放云上吗?
如何让代码与储存空间分离?
安装的时候数据库无法连接的问题
我是新手刚安装完We center 刚安装完提示要删除一个文件 请问要删除那个文件?
新手安装出现服务器不支持怎么解决?