Red Hat Bugzilla – Bug 1266989
Redirect issues due to changing to 172.16.x.x network
Last modified: 2015-12-18 15:08:08 EST
Description of problem:
This issue is related to our VPC migration in early August. This migration moved us from a 10.x.x.x network to a 172.16.x.x network. According to the RemoteIPValve documentation for the internalProxies at https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/RemoteIpValve.html :
"By default, 10/8, 192.168/16, 169.254/16 and 127/8 are allowed ; 172.16/12 has not been enabled by default because it is complex to describe with regular expressions"
The solution is to define the Valve in context.xml slightly differently from what the knowledgebase article describes. The following should work:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
# rhc app create jbossews-2.0 -a work -s
# rhc cartridge scale jbossews-2.0 --min 2 --max 2 -a work
Follow previous instructions
-git add commit push
-in private window test the results are weird because everything works but then if you try again with a private window it doesn't
- curl to local gear passes
- Redirect error
- Work like it did in the past.
Since we have moved from a 10.x.x.x network to a 172.16.x.x network, should we update the online docs or provide an announcement?
We do not plan on changing the cartridge. This is due to the change allowing all 172.16.0.0 addresses rather than just the 172.16.0.0/12 addresses. Instead, we've made the article that describes the workaround public to all users. This should allow users who may still be hitting this issue to find a workaround: