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

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

相关问题

为什么登陆的时候总是要重复登录?
关闭网站后不跳转到登录页面该怎么设置
问题内容实现部分登录可见
新浪微博与腾讯微博及QQ登录
管理员登录页Email不显示
我的wecenter 管理员密码进不去,怎么办
用户登录可能存在跨站脚本攻击漏洞?
微博登录,绑定点击链接没反应
如何修改安装文件,使安装后后台登录不用输入验证码?
WC支不支持某些问题或者文章只有管理员能看

推荐内容

wecenter安装出现问题
Centos7部署WeCenter问答系统遇到的一些问题以及解决方法
这个问题怎么解决?
新手安装出现服务器不支持怎么解决?
autosize is not a function
请问这个程序有没有其他的模版,如何安装?
发生错误 返回的信息 ucenter client not installed 如何解决?
这个系统能装到百度开放云上吗?
更换安装目录的话,应该怎么操作?
如何让代码与储存空间分离?