查看问题详情

编号项目分类查看权限最后更新
0000560Anolis OS 8* OTHERSpublic2021-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
error was encountered while trying to use an ErrorDocument to handle the request.


</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 状态 新建 => 已分配