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

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

相关问题

后台无法登录
解决手机版登录与注册页上的框空白没提示问题
如何将登录页作为首页
IOS 和安卓手机系统 在没登录的情况下 点击话题 只出现空白页
注册,登录有没有改成手机号码方式的?
3.1.8版后台编辑用户资料时邮箱被改成管理员邮箱?
发布文章添加话题,然后点击发布时报错,提示没对应字段啊
手机版第三方QQ登录跳转404页面,PC端正常
未注册用户,使用第三方登录报错。
管理员账号不小心被禁止登陆了,怎么搞?

推荐内容

我是新手刚安装完We center 刚安装完提示要删除一个文件 请问要删除那个文件?
如何让代码与储存空间分离?
Docker安装和部署WeCenter3.3.5开源问答平台
新手安装出现服务器不支持怎么解决?
这个问题怎么解决?
phpenv安装wecenter ,把默认目录设置为wecenter根目录下的public后,图片显示不正常
安装跳转不了下一步
wecenter安装出现问题
安装时提示× WeCenter 至少需要有 GD 图象处理库才能正常运行
Centos7部署WeCenter问答系统遇到的一些问题以及解决方法