Forum Moderators: phranque

Message Too Old, No Replies

Location paths on different servers and different public IP's

Possible to serve paths on different servers with different public IPs?

         

stevej444

10:37 am on Feb 26, 2008 (gmt 0)

10+ Year Member



Hi,
Wonder if anyone can help at all.

Is it possible to configure a site whereby different paths are served from different servers, and where each different path has a distinct public IP address?

So:
- www.mydomain.com/html/fr is served from a French server and given a French IP address
- www.mydomain.com/html/de is served from a German server and given a German IP address

Anyone know whether such a thing is possible? Perhaps doing some fancy Reverse Proxy thing?
The separate public IP address thing is absolutely key here.

Thanks,
S

jdMorgan

3:59 pm on Feb 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This would be possible:

fr.mydomain.com/html/ is served from a French server with a French IP address
de.mydomain.com/html/ is served from a German server with a German IP address

Host the sites separately in each country, and map each subdomain to the correct server in your DNS zone file. From each server, you could then proxy "common" requests to a shared back-end server located anywhere.

Be aware that without special configuration changes, the back-end server would 'see' all requests as coming from the front-end servers, and not from users. You'd need to configure the front-end servers to send X_Forwarded_For headers to the back-end, and provide for those header values in a custom log file format. This would require server-configuration-level access (httpd.conf or conf.d) on the front-end servers, and so affects your choice of hosts and hosting solutions.

Jim

stevej444

4:16 pm on Feb 27, 2008 (gmt 0)

10+ Year Member



Hi Jim,

Thanks for the reply. Yeah, problem is that the desired effect is for it to all happen on the one domain but with the ..../fr, and the ..../de having separate IP addresses.

I hazard a guess that that just isn't really doable.

Thanks,
S