Expand my Community achievements bar.

sling redirect port

Avatar

Level 2

Hi,

We are using AEM (Run Mode - Publish) with Dispatcher. Both AEM and Dispatcher is running OK but we are just facing an issue with sling:redirects. The request to dispatcher is on port 80 and dispatcher forwards the request to load balancer on port 8180. The servers are behind the load balancer. Now if I try to load the default geomettrix site it is not loading (with Root Mapping). The reason is that after sling redirects from RootMapping the port gets applied. I am not sure why the port is being added. I have faced this issue for the first time. Please find the apache log

 

[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] response.headers[Location] = "/index.html"
[Sat May 16 09:07:24 2015] [I] [3466(140538482489408)] "GET /" 302 - 12ms
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Found farm website for example.com
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] checking [/index.html]
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] request URL not in cache rules: /index.html
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] cache-action for [/index.html]: NONE
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Creating new socket: internal-load-balancer:8180
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Connected to backend rend01 (internal-load-balancer:8180)
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: host
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: Accept
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: Accept-Encoding
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: Accept-Language
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: User-Agent
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: X-Forwarded-Port
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: Via
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: X-Forwarded-For
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] Adding request header: Server-Agent
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] response.status = 302
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] response.headers[Date] = "Sat, 16 May 2015 13:07:25 GMT"
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] response.headers[Location] = "http://example.com:8180/content/geometrixx-outdoors/en.html"
[Sat May 16 09:07:24 2015] [D] [3466(140538482489408)] response.headers[X-Content-Type-Options] = "nosniff"

0 Replies