LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-21-2005, 03:28 PM   #1
blizunt7
Member
 
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, 03:53 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

Rep: Reputation: 147Reputation: 147
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.

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

Original Poster
Rep: Reputation: 30
ahhhh,
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, 04:59 PM   #4
xhi
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..
 
  


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


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


All times are GMT -5. The time now is 04:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration