View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016730 | CentOS-8 | httpd | public | 2019-11-14 09:20 | 2020-05-09 21:41 |
Reporter | jbs | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Product Version | 8.0.1905 | ||||
Summary | 0016730: httpd landing page not accessible. | ||||
Description | After installing httpd, the centos 8 apache landing page is not accessible. | ||||
Steps To Reproduce | dnf install httpd service httpd start firewall-cmd --add-service=http --permanent firewall-cmd --reload curl 127.0.0.0 <!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 / Additionally, a 403 Forbidden </body></html> | ||||
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 index.html.es-ES 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 </LocationMatch> <Directory /usr/share/httpd/noindex> AllowOverride None Require all granted </Directory> Alias /.noindex.html /usr/share/httpd/noindex/index.html | ||||
Tags | 8.0 | ||||
I've been hitting this issue today (see https://github.com/geerlingguy/ansible-for-devops/pull/263) 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. |
|
(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. | |
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 |