View Issue Details

IDProjectCategoryView StatusLast Update
0016730CentOS-8httpdpublic2020-05-09 21:41
Status acknowledgedResolutionopen 
Product Version8.0.1905 
Target VersionFixed in Version 
Summary0016730: httpd landing page not accessible.
DescriptionAfter installing httpd, the centos 8 apache landing page is not accessible.
Steps To Reproducednf install httpd
service httpd start
firewall-cmd --add-service=http --permanent
firewall-cmd --reload
<title>403 Forbidden</title>

You don't have permission to access /
on this server.

Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.


Additional Information/etc/httpd/conf.d/welcome.conf (below) points to file /usr/share/httpd/noindex/index.html but this file does not exists:
ls -als /usr/share/httpd/noindex
0 drwxr-xr-x. 5 root root 44 Nov 12 09:51 common
8 -rw-r--r--. 1 root root 4288 Jul 30 03:14 index.html.en-US
8 -rw-r--r--. 1 root root 4467 Jun 14 04:37
4 -rw-r--r--. 1 root root 4006 Jun 14 04:37 index.html.zh-CN
4 -rw-r--r--. 1 root root 4006 Jun 14 04:37 index.html.zh-HK
4 -rw-r--r--. 1 root root 4006 Jun 14 04:37 index.html.zh-TW

Possible solutions:
1. change welcome.conf to point to one of the available files;
2. ln -s /usr/share/httpd/noindex/index.html.en-US /usr/share/httpd/noindex/index.html

***** /etc/httpd/conf.d/welcome.conf *****
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /.noindex.html

<Directory /usr/share/httpd/noindex>
    AllowOverride None
    Require all granted

Alias /.noindex.html /usr/share/httpd/noindex/index.html




2020-05-09 21:31

reporter   ~0036908

I've been hitting this issue today (see when trying to set up a quick demo environment installing Apache on CentOS 8. In CentOS 7 and below, it was simple to demonstrate `yum install -y httpd && systemctl start httpd`, and then Apache would start giving valid responses with the (nicely-formatted) CentOS welcome page.

When I request the page, I get a default `zh-cn` version of the page with 403 Forbidden.

It would be nice to get the httpd package to respond with the welcome page by default.


2020-05-09 21:41

reporter   ~0036909

(Update to my previous note: Apparently CentOS 7 also produces a 403 on a fresh install, when I `curl --head localhost`. I guess it makes sense since there's no default `index.html` in there, but it's weird that it behaves differently on CentOS 8, and in my case, returns a zh-cn version of the index page.

Issue History

Date Modified Username Field Change
2019-11-14 09:20 jbs New Issue
2019-12-31 16:28 toracat Tag Attached: 8.0
2020-01-09 09:17 toracat Status new => acknowledged
2020-05-09 21:31 geerlingguy Note Added: 0036908
2020-05-09 21:41 geerlingguy Note Added: 0036909