You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2020/01/10 09:01:43 UTC

[Bug 63079] Add a debug line if Directory instruction provides an invalid path

https://bz.apache.org/bugzilla/show_bug.cgi?id=63079

--- Comment #10 from stephane.blondon@gmail.com ---
Created attachment 36960
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36960&action=edit
print a warning if Directory directive is incorrect

This is a patch to provide a Warning is the Directory value is not valid.

For example:

$ apachectl -t -f ~/src/httpd-trunk/demo/site.conf
AH10229: Warning: <Directory "/x/y/z/"> does not exist or is not a directory
AH10229: Warning: <Directory "/etc/hostname"> does not exist or is not a
directory

with '~/src/httpd-trunk/demo/site.conf' file contains:
<VirtualHost 127.0.0.1:80>
    ServerAdmin admin@yaal.fr
    ServerName demo

    <Directory /x/y/z/>
    </Directory>

    <Directory /etc/hostname>
    </Directory>
</VirtualHost>

What do you think about it?
Does it need some improvement to be merged?

The patch is attached to this message.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org