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

管理员登录时报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 通信出错, 请重新登录
手机版的QQ登录页文件在哪里
【紧急漏洞】微信登录跳转链接未过滤导致被恶意使用【已修复】
安装好了,点击登录按钮没有反应是怎么回事呢
注册和登录页面在opera下面有点BUG
2.2.1版本自定义规则 后台无法登录
新安装2.2.5无法登录管理

推荐内容

请问这个程序有没有其他的模版,如何安装?
安装跳转不了下一步
新手安装出现服务器不支持怎么解决?
ask.icheruby.com 安装后无法正常使用
我是新手刚安装完We center 刚安装完提示要删除一个文件 请问要删除那个文件?
安装wecenter提示:SQL: SELECT `aws_system_setting`.* FROM `aws_system_setting`
数据库地址 账号 密码 数据库名称 正确为什么安装不成功
误删install.lock.php,除了重装,还有其他方式么
发生错误 返回的信息 ucenter client not installed 如何解决?
安装的时候数据库无法连接的问题