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

管理员登录时报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登录时,密码加密方式是什么?
wecenter官方怎么也不能用QQ登录?
如何设置让新浪微博登录后不用再注册?
登录页可以自己维护吗
是否有可能支持HTTPS登录
增加QQ登录
手机版登录后无法退出
3.1.9登录不了的问题的解决方案

推荐内容

ask.icheruby.com 安装后无法正常使用
安装的时候数据库无法连接的问题
安装跳转不了下一步
这个系统能装到百度开放云上吗?
请问这个程序有没有其他的模版,如何安装?
3.19版本上传了为什么解压出来只有4K啊
安装wecenter提示:SQL: SELECT `aws_system_setting`.* FROM `aws_system_setting`
如何让代码与储存空间分离?
Docker安装和部署WeCenter3.3.5开源问答平台
这个问题怎么解决?