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

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

相关问题

如何操作数据库修改管理员密码登录
rc3的metro风格登录界面有微博登录了没有呀?
管理后台进行操作老是需要重复登录怎么办?
QQ互联登录出现redirect uri is illegal(100010)怎么办?
即使用户没验证邮箱,也不应该禁止登录。
wecenter怎么和织梦进行用户同步登录?
iis环境下QQ互联登录不跳转,apache下正常什么情况
微博登录、QQ 登录等功能须服务器支持 CURL
ucenter同步后,用户同步都成功,但管理员却登不上去了
请问一下metro风格的注册登录页面灰色背景怎么改

推荐内容

autosize is not a function
ask.icheruby.com 安装后无法正常使用
phpenv安装wecenter ,把默认目录设置为wecenter根目录下的public后,图片显示不正常
发生错误 返回的信息 ucenter client not installed 如何解决?
更换安装目录的话,应该怎么操作?
关于wecenter 3.2.0的安装问题,一直不成功,是什么原因?
如何让代码与储存空间分离?
请问这个程序有没有其他的模版,如何安装?
更新威望数据 出错。。
数据库地址 账号 密码 数据库名称 正确为什么安装不成功