How to forward all traffic to another domain?
serverA has a serverA.com domain
serverB has a serverB.com domain
I want to forward all incoming traffic from serverA to serverB
For example, when I open the link below
serverA.com/example
This traffic is forwarded to ServerB.com/example
But I don't want to redirect to serverB
Asked
Active
Viewed 122 times
0

Joe
- 11
- 2
-
Does this answer your question? [What is a Reverse Proxy?](https://serverfault.com/questions/8654/what-is-a-reverse-proxy) – vidarlo Jan 23 '23 at 14:49
-
I'm not sure! Could you send example for this issue? – Joe Jan 23 '23 at 14:56
-
Reverse proxy is most likely the thing you are looking. The internet has lots of information on reverse proxies. Please go through them first and then ask specific questions if needed. – Tero Kilkanen Jan 23 '23 at 15:27
-
reverse proxy by nginx? – Joe Jan 23 '23 at 15:31
-
Nginx works as a reverse proxy yes. So does Apache and IIS. – vidarlo Jan 24 '23 at 07:09
-
Are they on different IP addresses? Are they on different servers? – Nedry Jan 26 '23 at 14:20
1 Answers
0
I think that what you are asking for is a "URL redirect". This guy gets way further into the weeds that I can do in a paragraph here. ;-)
https://www.semrush.com/blog/redirects/
Then again, I just read your last sentence where you say you do NOT "want to redirect to serverB", so this may or may not be what you're looking for.

captain
- 1
- 2