LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2005, 07:12 AM   #1
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Rep: Reputation: 15
href=" " can this be pointed to a shared drive


Hello folks,
Most of the images etc that I want to display on my web page are on a shared drive on my Lan. Is it possible to serve them up from this drive and what is the format of the href and src elements please?

Cheers
 
Old 08-26-2005, 01:10 PM   #2
issinho
Member
 
Registered: Jun 2005
Location: Bosie, ID
Distribution: Fedora Core 4, Kurumin,BackTrack, Slackware 10.2, IPCop
Posts: 105

Rep: Reputation: 15
src="{path}"

Should be able to use:

img src="/path/to/image"

That should take care of it. Then again, my HTML programming skills are pretty basic`
 
Old 08-26-2005, 01:13 PM   #3
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Original Poster
Rep: Reputation: 15
Hmmm! Yes I tried that but it seems I might have to either mount the disk or use a protocol to point to the image. Not sure how/what to use though.

Cheers
 
Old 08-26-2005, 01:28 PM   #4
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
Do you want the clients to get the web pages from your web server and then get the images directly from the file server? Or do you want to use the web server as kind of a "proxy" to the file server? For the latter, you'd either mount the shared disk on the web server and add the mount point to be accessible thru Apache config, or you could write a PHP/Perl/etc. script to pull the images from the file server (mounting it would be way easier).

For the former - if your file server is Windows or Samba and all your clients are Windows, you can put <img src="file://///ServerName\ShareName\file.jpg" ... and it will work because of the way Windows has automagic filesystem support for shared files. Useless if someone browses your web site with Linux. Also, Mozilla or Firefox need exactly the five slashes after file: and I think there is a about:config option you need to set because it considers file links on a web site accessed via http a potential security hole, whereas IE will just let it work.
 
Old 08-26-2005, 01:33 PM   #5
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Original Poster
Rep: Reputation: 15
Yabba dabba - now we're cooking.
I am using Linux and Apache as the web server. I don't have a file server per se [leastways I don't think so] but the files are on a windows disk that I can see through Samba from the Linux box.
With this in mind what would you suggest for both windows IE and Linux Apache browsers out there?

Many thanks.
 
Old 08-26-2005, 02:32 PM   #6
turnbui
Member
 
Registered: Jul 2005
Location: UK
Posts: 101

Original Poster
Rep: Reputation: 15
I've been playing about with what you suggested but to no avail. When I right click on the empty space where the image is supposed to be and choose view image I get the following:-

An error occurred while loading file://tony/tony/Scan1.JPG:

The file or folder //Tony/tony/Scan1.JPG does not exist.

Does this mean I'm getting close? I've also tried smb://///Tony/tony/Scan1.JPG without success

Have you any suggestions please?
 
  


Reply



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
Not loading gdm;"libX11.so.6 cannot open shared object" zlobby Linux - Newbie 6 03-03-2004 04:30 PM
Linux boot hang : "init: error loading shared libraries" colinprice72 Linux - General 0 01-16-2004 09:04 AM
/usr/libexec/ld-elf.so.1: Shared object "libgd.so.4" not found lxxy *BSD 1 12-04-2003 12:01 PM
Intel USB Webcam & "missing shared libraries: libgd.so.1.8" leavingwindows Linux - Newbie 1 10-29-2003 02:12 PM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:58 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