[ACCEPTED]-Accessing files outside the document root with Apache-document-root

Accepted answer
Score: 18

You can create a directory alias:

<VirtualHost....>

..... stuff .....

Alias /mydir /a/b/c

</VirtualHost>

then you 5 could access the text file like so:

domain.com/mydir/myfile.txt

Note 4 that this needs to take place in the central 3 configuration file, not a .htaccess file.

Symlinks 2 are an option too. Make sure you have

Options +FollowSymlinks

turned 1 on.

More Related questions