redirect after authentication to wrong port #868
-
|
Hello, I had my configuration working perfectly on apache 2.4.46, but once I updated the config to 2.4.53, I noticed an issue that is linked to the last redirection after code validation. https://example.com/?code... : code validation is OK. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
you'll need to make the module aware of the external port with a header that is set by the LB/proxy running in front of it, i.e. it should add the header |
Beta Was this translation helpful? Give feedback.
you'll need to make the module aware of the external port with a header that is set by the LB/proxy running in front of it, i.e. it should add the header
X-Forwarded-Port 443(and you'll need to addOIDCXForwardedHeaders X-Forwarded-Portto the module's config if you're running a recent version of it), see: https://github.com/zmartzone/mod_auth_openidc/wiki#8-how-do-i-run-mod_auth_openidc-behind-a-reverse-proxy