Forum Moderators: phranque
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
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