Bug 57453 - 403 error when virtualhost configured with non-existing directory
Summary: 403 error when virtualhost configured with non-existing directory
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.4
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-17 18:22 UTC by teo8976
Modified: 2019-05-06 22:52 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description teo8976 2015-01-17 18:22:37 UTC
Steps to reproduce:

1) Create a virtual host with a DocumentRoot that does not exist:
<VirtualHost *:80>
    DocumentRoot "/this/path/does/not/exist"
    #......
</VirtualHost>

2) from a client/browser, try to visit that virtual host

Expected: Probably a 5xx InternalServer error would be the right response, certainly not 403 forbidden.

Observed: the server returns a "403 forbidden" response, which makes no sense.