查看问题详情
编号 | 项目 | 分类 | 查看权限 | 报告日期 | 最后更新 |
---|---|---|---|---|---|
0000560 | Anolis OS 8 | * OTHERS | public | 2021-11-23 10:38 | 2021-12-10 14:41 |
报告员 | qhw13324663979 | 分派给 | yunqi-zwt | ||
优先级 | normal | 严重性 | minor | 出现频率 | always |
状态 | assigned | 处理状况 | open | ||
平台 | x86_64 | 操作系统 | Anolis OS | 操作系统版本 | 8 |
产品版本 | 8.2 正式版 | ||||
标题 | 0000560: 访问apache和nginx 默认首页报错 | ||||
描述 | 在anolis 8.2 安装完apache或者nginx 1.18版本后,启动apache或者nginx服务后,访问80端口报错 初步排查后发现安装好这两个服务的软件包后,没有默认首页文件导致 正常情况下安装anolis-logos-httpd包后会生成/usr/share/testpage 目录和/usr/share/testpage/index.html文件,但实际情况是没有生成该目录和文件 | ||||
问题重现步骤 | 安装 apache yum -y install httpd systemctl start httpd curl http://localhost 安装 nginx yum module -y install nginx:1.18 systemctl start nginx curl http://localhost | ||||
附注 | [root@localhost ~]# find / -name index.html /usr/share/doc/cyrus-sasl-lib/index.html /usr/share/httpd/noindex/index.html /usr/share/nginx/html/index.html [root@localhost ~]# ll /usr/share/nginx/html/index.html lrwxrwxrwx. 1 root root 25 Jul 21 03:33 /usr/share/nginx/html/index.html -> ../../testpage/index.html [root@localhost ~]# ll /usr/share/httpd/noindex/index.html lrwxrwxrwx. 1 root root 25 Jun 24 03:37 /usr/share/httpd/noindex/index.html -> ../../testpage/index.html [root@localhost ~]# systemctl start httpd [root@localhost ~]# curl http://localhost <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> You don't have permission to access this resource. Additionally, a 403 Forbidden </body></html> [root@localhost ~]# systemctl stop httpd [root@localhost ~]# systemctl start nginx [root@localhost ~]# curl http://localhost <html> <head><title>403 Forbidden</title></head> <body> <center><h1>403 Forbidden</h1></center> <hr><center>nginx/1.18.0</center> </body> </html> | ||||
标签 | 没加标签. | ||||
日期 | 用户名 | 字段 | 更改 |
---|---|---|---|
2021-11-23 10:38 | qhw13324663979 | 新建问题 | |
2021-11-25 16:10 | qhw13324663979 | 描述已修改 | |
2021-11-25 16:11 | qhw13324663979 | 问题重现步骤已修改 | |
2021-12-10 14:41 | jacobwang | 分派给 | => yunqi-zwt |
2021-12-10 14:41 | jacobwang | 状态 | 新建 => 已分配 |