Accessing the images folder from different server
Posted: Tue Mar 20, 2012 10:24 pm
Hi,
I would like to ask if this is possible. I have two hosts,
server1 - web server
server2 - db server
both are in the same vpn. I have a web page in server1 which access the images located in server 2.
example:
<img src="http://server2/images/someimage.jpg">
Is it possible to change the src value to images/someimage.jpg only? What I mean here is the images is physically located at server2 but accessing it like a local folder in server1.
I hope you can suggest a very good setup for this. I don't want to put the ip address of server2 in my scripts.
Regards,
Jess
I would like to ask if this is possible. I have two hosts,
server1 - web server
server2 - db server
both are in the same vpn. I have a web page in server1 which access the images located in server 2.
example:
<img src="http://server2/images/someimage.jpg">
Is it possible to change the src value to images/someimage.jpg only? What I mean here is the images is physically located at server2 but accessing it like a local folder in server1.
I hope you can suggest a very good setup for this. I don't want to put the ip address of server2 in my scripts.
Regards,
Jess