Redirected port getting appended

Sunil Pothireddy [Intel] March 17, 2013

We have a Load Balancer for JIRA (as of now we are having only one instance but we wanted this for future use)

IDEAL SCENARIO and LB is working fine as mentioned below

http:jira.example.com ---- > href="https://jira.example.com">http://server1:8080
https://jira.example.com
---> https://server1:7443

But once we implemented redirecting from port 8080 to 7443 , this port is getting appended on DNS name as well......that is when someone types http:jira.example.com it is taking to https:jira.example.com:7443(which doesn't exist)

My intention is it should be redirected to https:jira.example.com instead of https:jira.example.com:7443

IS there any settings/configuration where can fix this issue ?

1 answer

1 accepted

0 votes
Answer accepted
Sunil Pothireddy [Intel] March 19, 2013

Modified server.xml

<Service name="Catalina">

<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="443" useBodyEncodingForURI="true"/>

All calls will be diverted from LB server will be pointed to port 443, http:jira.example.com gets diverted to https:jira.example.com , if you want to access using your server name then it would be https://server1:7443 and only drwaback is http://server1:8080 will not work as it gets redirected to https://server1:443</span<>>

Suggest an answer

Log in or Sign up to answer