get image from a linux server and display it on website
i have an image on a linux server some开发者_运维问答where and a website on another server. i need a way for the website to directly access this image. Is there a way?
Yes, you can share the directory you're interested in from the linux server to your web server.
You can use NFS
if both servers are Unix-type machines, or use Samba
if the web part is running on Windows.
For more information, look at the Linux NFS HowTo for instance.
is the webserver also a linux machine?
probably you can copy the image using ssh to your server every minute with a cronjob.
or trigger a rsync every minute.
some more information about your machines would be usefull
If you can get public access to the linux web server, it's surely possible.
In short, you can add any accessible image to an HTML document, irrespective of it's location.
精彩评论