Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4731

Is it possible to map a different frontend domain to a backend website without the client ever knowing?

$
0
0

Is it possible to use HAProxy to present a different domain (or subdomain) to the client (as represented in the browser’s address bar, for example) than the one that is actually being queried on the website in the backend?

For example: suppose that I had a website at example.com, with two pages: /page1 and /page2. Could I set up a frontend in HAProxy that made it look as if example2.com was a real site, when actually it was just translating everything from example.com on a request by request basis? Thus, a request to example2.com/page1 would return the page from example.com/page1 without the end user ever knowing it?

And, if so, could this be done more delicately with subdomains? Could I ask HAProxy to convert any request made to example.com/test into test.example.com without the client ever knowing that the whole thing was virtual? So that, for example, a request to test.example.com/page3/123 took the information from example.com/test/page3/123 and re-presented it without the end-user seeing the shift?

Thanks!

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>