Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-21-2005, 04:28 PM   #1
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Rep: Reputation: 30
HTML + href absolute path does not work

Hey all,
Low level question. I am trying to include a file on my system (FC4) on my site.

Im using <A HREF="FULL PATH">file </A>

because the file is located in a different tree from the root than my web server is. When i use the absolute path, the file is not loaded, says it cannot be found on the server.

When i copy the same file, perms the same, into my /var/www/html with all my other files, the file is read fine.
Any ideas?

thanks so much
Old 11-21-2005, 04:53 PM   #2
Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
what about the permissions of the containing directories? If the web browser can't get to the file because of a permission lock out it won't be able to display it.

Old 11-21-2005, 05:01 PM   #3
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Original Poster
Rep: Reputation: 30
Even though I am the owner of the file I have wrx perms for Others ---. So this would prevent anyone from traversing into my directory, thank you.

Would it be worth it to create soft links to those files, in the /var/www/html file???

THanks josh
Old 11-21-2005, 05:59 PM   #4
Senior Member
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
if a file cannot be reached because of permissions, a link will not help to overcome the problem.

either add the dir to apaches view or the best way would be to make a copy into a dir that apache uses safely..


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Absolute path qspares Linux - Software 6 10-02-2007 04:11 AM
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 08:45 AM
how to get absolute path of current executing C/C++ prog? Thinking Programming 2 10-10-2005 11:27 AM
getting Wacom tablet to work in 'absolute' mode xilmin Linux - Hardware 7 05-07-2005 08:33 AM
absolute path to qmail in sme 5.6? dopper Linux - Software 0 10-28-2003 02:48 PM

All times are GMT -5. The time now is 01:50 AM.

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