Debian – Give Apache Permission to Serve Files Outside of /var/www

apache-2.2debianpermissions

I have my apache server and its specific files in /var/www and I have a bunch of group documents that I want to serve out in another directory /company/shared_files. I wrote and alias and it seems like it worked but apache doesn't have permission to read it. What do I need to change because I have global read and execute permission for the /company/shared_files directory.

Here is the alias I have:

Alias /shared_files/ "/company/shared_files"
<Directory "/company/shared_files/">
        Options Indexes MultiViews
        AllowOverride None
</Directory>

I'm running the newest version of debian.

Best Answer

Should not you add allow directive to new entry:

Order deny,allow
Allow from all

Because root directory by default have "deny from all".

Related Topic