-
1. Re: Tell Wildfly to redirect to HTTPS after login instead of HTTP when behind HTTPS wildfly undertow-balancer
ctomc Feb 21, 2019 7:48 AM (in response to gipathak)set attribute secure=true on listener(s)
more info here https://wildscribe.github.io/WildFly/15.0/subsystem/undertow/server/http-listener/index.html#attr-secure
-
2. Re: Tell Wildfly to redirect to HTTPS after login instead of HTTP when behind HTTPS wildfly undertow-balancer
gipathak Feb 21, 2019 11:20 AM (in response to ctomc)Hi Tomaz,
I tried this it didn't worked for me.
For me when I am sending the get request to server like https://someip/myapp it is converting it like this http://someip/myapp/ , I am getting following in browser developer console:
General
--------
Request URL: https://someip/myapp
Request Method: GET
Status Code: 302 Found
Remote Address: someip:443
Referrer Policy: no-referrer-when-downgrade
Response Header
---------------
Cache-Control: no-cache, no-store, must-revalidate, private
Connection: keep-alive
Content-Length: 0
Date: Thu, 21 Feb 2019 15:48:50 GMT
Location: http://someip/myapp/
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
And in Request Header
----------------------
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Cookie: _ga=GA1.1.170003414005.155030312679; _gid=GA1.1.136841336084.1550667277
Host: someip
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Could you please direct me am I missing some configuration, I am new with wildlfy undertow load-balancer , we are using wildlfy 14 undertow load balancer profile.
I have posted my load balancer configuration for same in one of the post https://developer.jboss.org/thread/279376
-
3. Re: Tell Wildfly to redirect to HTTPS after login instead of HTTP when behind HTTPS wildfly undertow-balancer
gipathak Mar 13, 2019 2:08 PM (in response to gipathak)1 of 1 people found this helpfulThis question is answered here please follow this link if anyone faces this kind of issue https://stackoverflow.com/questions/54016800/getting-http-in-the-location-header-when-the-original-request-was-made-over-http