>Number: 4408 >Category: general >Synopsis: Improper error message returned by server when a remote file >server is down. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu May 13 11:10:01 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.6 >Environment: Solaris 2.6 Generic_1.5181-11 Sun cc >Description: When a remote file server goes down (in our case, an afs file server), the web server returns a "Forbidden" error, because it can't access a .htaccess file. Since the error actually returned when attempting to read a .htaccess file is "ENODEV", it's possible to modify main/http_config.c to return "HTTP_SERVICE_UNAVAILABLE" instead of "HTTP_FORBIDDEN" in that case. Could this change be incorporated into the distribution? >How-To-Repeat: Only happens when a file server is down. (If I could predict those...) >Fix: % diff http_config.c-orig http_config.c 1256a1257,1266 > if (errno == ENODEV) { > ap_log_rerror(APLOG_MARK, APLOG_CRIT, r, > "%s pcfg_openfile: unable to check htaccess " > "file, device not found", > filename); > ap_table_setn(r->notes, "error-notes", > "Server unable to read htaccess file, denying " > "access to be safe"); > return HTTP_SERVICE_UNAVAILABLE; > } >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]