Prachi g
Prachi g

Reputation: 839

apache tomcat to redirect to new url

Currently, I am hosting a webapp at http://sample1.com:8080/UI_V2/. I am using apache tomcat for hosting it. Now, I want to get rid of this sample1 box. But for a few days, I want to redirect all the requests which comes to http://sample1.com:8080/UI_V2/ to the new box http://sample2.com:8080/UI_V2/

How do I do that?

Upvotes: 0

Views: 412

Answers (1)

carlspring
carlspring

Reputation: 32567

Put an Apache httpd in front of it and set up a ProxyPass to point to sample2. This way you'll be able to switch things easier.

Upvotes: 2

Related Questions