I am aware of this question, which is very similar to mine, however I am interested in why this is the default behaviour.
Since by default the document root is /var/www/html, there is, to my knowledge, no way to access the files at /usr/share. Hence I don't see the point of allowing access to them.
Apache version 2.4, on Ubuntu Xenial (16.04)
/usr/shareis, as the directory naming suggest a place to share files, so why not also share those files via http?/srvis another traditional place for serving shared files using different services. Why do you still use Ubuntu 16.04? – paladin Mar 07 '24 at 16:08