in https mod a httpd redirection to wrong url #830
-
|
Scenario is an ec2 instance that contains httpd as reverse proxy linked to okta openid connect. It is working as expected when the connection is through http instead of https, but when using https with aws's certificate manager it authenticates successfully against okta when connecting to https://example.io but then redirects to https://example.io:80/ which eventually fails to resolve. (should be https://example.io) Below is the httpd configuration, not sure what is missing there. Any idea what is missing there? Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
you also need: RequestHeader set X-Forwarded-Port "443" earlyor alternatively drop RequestHeader set X-Forwarded-Host "example.io:443" earlysee also: |
Beta Was this translation helpful? Give feedback.

you also need:
or alternatively drop
ProxyPreserveHost Onand use:see also:
https://github.com/zmartzone/mod_auth_openidc/wiki#8-how-do-i-run-mod_auth_openidc-behind-a-reverse-proxy
and remember to set
OIDCXForwardedHeadersfor recent versions of the module