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

管理员登录时报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有没有办法让用户不登录看不到问题的答案
3.1.9升级到3.3.4,登录无法显示发现页,报550错误
添加微信菜单时报以下错误
JS 调用插件下载链接失效,管理员更新一下吧
WeCenter能设置为只有登录后的用户才能访问和回答吗?
关于UC整合登录问题
官方微信账号,登录wc之后无法退出呀!
有用户反映,手机版访问,UC浏览器,无法登录?
ie登录页不显示背景?

推荐内容

wecenter安装出现问题
误删install.lock.php,除了重装,还有其他方式么
Centos7部署WeCenter问答系统遇到的一些问题以及解决方法
ask.icheruby.com 安装后无法正常使用
安装完成后, 访问192.168.*.*/install/ 提示“您的程序已经安装, 要重新安装请删除 system/config/install.lock.php ”
安装wecenter提示:SQL: SELECT `aws_system_setting`.* FROM `aws_system_setting`
发生错误 返回的信息 ucenter client not installed 如何解决?
Docker安装和部署WeCenter3.3.5开源问答平台
更新威望数据 出错。。
更换安装目录的话,应该怎么操作?