[ACCEPTED]-Accessing files outside the document root with Apache-document-root
Accepted answer
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.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.