Bug 48254

Summary: Bogus "DocumentRoot does not exist" warning when set to a file
Product: Apache httpd-2 Reporter: Bill Clark <billclark>
Component: AllAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: trivial CC: andersk
Priority: P2 Keywords: FixedInTrunk, PatchAvailable
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch to elaborate on the warning

Description Bill Clark 2009-11-20 13:49:55 UTC
I often set the DocumentRoot of a vhost to a file (PHP script) to remap requests for all URIs to a single point of entry.  This works just fine and has never given me a problem, but Apache throws a warning about the DocumentRoot not existing.  The existence check should probably just check for existence, and not that the DocumentRoot is a directory (which is what it is apparently doing now) or at least give a more accurate warning ("DocumentRoot is not a directory") or something.
Comment 1 Daniel Gruno 2012-05-01 05:23:36 UTC
Created attachment 28701 [details]
Patch to elaborate on the warning

Here's a simple patch that would elaborate on the warning, stating instead: Warning: DocumentRoot [%s] does not exist or is not a directory
Comment 2 Giovanni Bechis 2020-05-16 17:53:53 UTC
Fixed in r1506474 in a similar way.