LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-21-2008, 09:54 PM   #1
fjkum
Member
 
Registered: Feb 2006
Posts: 40

Rep: Reputation: 15
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.
 
Old 08-21-2008, 10:03 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Try enabling 'FollowSymLinks' in your 'Options' and link '/opt/Personal/html/readme.txt' to '/opt/Personal/readme.txt'
 
Old 08-21-2008, 11:41 PM   #3
fjkum
Member
 
Registered: Feb 2006
Posts: 40

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please amend apache conf/httpd.conf file please payjoe Linux - Newbie 7 09-21-2007 05:12 PM
Restoring Apache httpd.conf file shof515 Fedora 1 11-24-2005 10:54 PM
Apache httpd.conf file?? matux Mandriva 2 01-28-2005 09:20 AM
Fedora 1, Apache, httpd.conf file Turner Linux - Newbie 2 07-07-2004 12:11 PM
PHP - What to add to Apache httpd.conf file? maktos Linux - Software 9 04-17-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration