I'm not sure, but a change to the hosts will automatically terminate the rewrite process.
However, I would put the second rule for /server1/ on the second server. Then it should work.
What do you mean by the "second rule"?
I thought that maybe should first try to change server name in the path, and then change the address - but how to do it until I can not imagine, with templates tight
I'll be back in the office tomorrow, but I don't have a test system today.
But if you change the IP/host, you are on a different server. I.e. another Tomcat with its own rewrite rules.
- I would put a rule on 22.214.171.124 that redirects to 126.96.36.199.
- On 188.8.131.52 then a rule that changes /server1/ to /server2/.
Such construct from division on servers is complicated by the fact that on server2 pass through sso and rewrite does not manage even to fulfill - on sso there is a server1 name
1 of 1 people found this helpful
I probably haven't really understood your scenario yet. BTW a sso integration does not interfere with urlrewriting.
You have 2 midtier servers (ip1 and ip2) and two Ar systems (ars1 and ars2).
- You want to redirect all requests from ip1 to ip2?
- you want to redirect all requests from ars1 to ars2?
You solved the first part, right? For the second part you can use the following rule
RewriteRule ^/arsys/forms/ars1/(.*)$ /arsys/forms/ars2/$1 [NC]
Have I forgotten something or misunderstood?
I'm mistake at second rule - your solution works, thank you very much!