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

管理员登录时报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登录
PC端登录及注册页面背景图片修改并实现自适应平铺
最新版本的,腾讯QQ登录还是被申请驳回?
如果安装时没有添加邮箱,会在第一次登录时强制输入邮箱!
安装完毕后,后台登录网址是啥呀?
管理员是谁啊 想认识认识
wecenter 换域名后无法登录?
有用友言的单点登录的吗?
整合ucenter之后,登录不了,配置文件我也改了,还是报这个错?
手机版登录先跳转404页,再跳转登录后首页

推荐内容

安装的时候数据库无法连接的问题
这个系统能装到百度开放云上吗?
autosize is not a function
我是新手刚安装完We center 刚安装完提示要删除一个文件 请问要删除那个文件?
新手安装出现服务器不支持怎么解决?
如何让代码与储存空间分离?
wecenter安装出现问题
安装wecenter提示:SQL: SELECT `aws_system_setting`.* FROM `aws_system_setting`
安装时提示× WeCenter 至少需要有 GD 图象处理库才能正常运行
更新威望数据 出错。。