Bug 169779

Summary: default welcome page is served in a 403: please use 200
Product: [Fedora] Fedora Reporter: Jon Dowland <jon.dowland>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-03 16:10:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jon Dowland 2005-10-03 15:26:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050825 Firefox/1.0.4 (Debian package 1.0.4-2sarge3)

Description of problem:
The default redhat welcome page that is served with httpd and a pristine configuration is done so in a 403 response. This however misleads non-human web clients into believing an error has occurred. It is quite conceivable for an admin to use the libcurl GET/HEAD, or wget, or something similar to determine if the apache server is reachable and working correctly whilst working on network issues, prior to configuring httpd in any way.

Please consider returning the welcome page in a standard 200 (success) response.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. install httpd
2. start httpd
3. GET <your server>
  

Actual Results:  403 response code (welcome page in body)

Expected Results:  200 response code (welcome page in body)

Additional info:

Comment 1 Joe Orton 2005-10-03 16:10:11 UTC
This is desired behaviour.  The server is not set up properly if you have not
replaced the welcome page so using a non-2xx is useful.  If you need to automate
some check, a simple "echo > /var/www/html/index.html" would suffice.

On a practical level there is no simple way to achieve a 2xx welcome page anyway.

Comment 2 Jon Dowland 2005-10-04 09:11:29 UTC
I see - you are the first person I have ever met who desires this behaviour :)
The way of thinking that we traditionally have is, the server does the serving,
and the content is another matter - therefore, a welcome page is not an error.
But it's your package...