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
Accessing the images folder from different server
Moderator: General Moderators
Re: Accessing the images folder from different server
Use a proxy: have the /images folder pass requests to server2. In the root .htaccess
Of course the easiest thing would be to move the images. Is that not an option?
Code: Select all
ProxyPass /images http://server2/imagesRe: Accessing the images folder from different server
you could also consider NFS