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: NEW ---    
Severity: trivial CC: andersk
Priority: P2 Keywords: 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