Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.