LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache httpd.conf - Allow to link to a file from one level up (https://www.linuxquestions.org/questions/linux-general-1/apache-httpd-conf-allow-to-link-to-a-file-from-one-level-up-664485/)

fjkum 08-21-2008 09:54 PM

Apache httpd.conf - Allow to link to a file from one level up
 
Hi,

I have a situation whereby I need to allow my HTML file to open a txt file from one level up from what has been specified in DocumentRoot.

DocumentRoot "/opt/Personal/html"

The readme.txt file is located in /opt/Personal.

And in my HTML file I put in:

<a href="../readme.txt">ReadMe</a>

But will not work.

mjmwired 08-21-2008 10:03 PM

Try enabling 'FollowSymLinks' in your 'Options' and link '/opt/Personal/html/readme.txt' to '/opt/Personal/readme.txt'

fjkum 08-21-2008 11:41 PM

Oh, forgot to tell you that I need to have a path that works for both Windows and Linux.

So I thinnk I can't rely on using symbolic link because this is something only available in Linux.


All times are GMT -5. The time now is 07:58 PM.