![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gnu PHP Link Directory 1.0 (Default branch) | iBot | Software Releases - RSS News | 0 | 08-20-2008 05:50 PM |
| soft link for directory in root FS | solaris123 | SUN Solaris | 2 | 04-01-2008 03:25 AM |
| how link directory | getdpg | Shell Programming and Scripting | 1 | 02-02-2006 10:31 AM |
| To link a filesystem to a directory | brookingsd | AIX | 3 | 09-29-2005 05:01 AM |
| displaying directory in html | adel66 | UNIX for Dummies Questions & Answers | 9 | 11-03-2003 09:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
html link to images in /tmp directory
Because of permission issues, I need to link to images in my web page which are stored in /tmp which of course is located in the root directory but my actual html page is much further down in another directory. I thought the the following code should work, but the image comes up as a broken link: Code:
<img src="/tmp/Energy_and_Power_on_Target-img.png"> |
|
|||||
|
Code:
<img src="/tmp/Energy_and_Power_on_Target-img.png"> the src has to be accessable from the internet/intranet. /tmp is not. You would have to add an Alias to you httpd.conf(apache) file in the correct place. Code:
Alias /tmp/ "/tmp/" This would link http://www.somedomain.com/tmp to /tmp But Im not sure you really want to do this. Why are you storing images in tmp? this is a "temporary" place to images and could be wiped at anytime, usually on reboot. |
|
||||
|
Thanks for the reply. I agree, storing images in tmp doesn't seem like a good idea. The web site is hosted on an oracle server and my DBA suggested I go this route since tmp is readable to me and my local directory for the web site is not (I have to upload the files using Oracle Application Server Control). If I store the images in my local web directory they will indeed show up on the web page, but I need to have access to the files as well to check their time stamps manually (they are generated by an app on the server and I need to look at the files for debugging).
I have a related problem as well. I also need these images to be linked to by other external web sites from other people. Does this external linking require any special configuration on my part? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|