mod_auth_openidc through apache Reverse Proxy, error #1012
-
We could successfully implement mod_auth_openidc and Azure Active Directory Authentication. Now we would like to access our Web App from outside, by proxying through an Apache Reverse Proxy which is on our DMZ. LAN Web APP:
Accessing from outside (through reverse Proxy) With ProxyPreserveHost Off: I get error 500 With ProxyPreserveHost On i get error 400:
Proxy host Apache configuration:
I can I make this configuration working? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 21 replies
-
you should be able to set a relative redirect URI e.g. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, I get error
Log:
|
Beta Was this translation helpful? Give feedback.
-
the Redirect URI is set to |
Beta Was this translation helpful? Give feedback.
-
I tried separate
But still cannot get rid of that double
|
Beta Was this translation helpful? Give feedback.
-
OK, I changed the ProxyPass order to make the redirect before, but same result.
Here the log:
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot zandbelt for your precious help. OK,
But still got those
|
Beta Was this translation helpful? Give feedback.
you should be able to set a relative redirect URI e.g.
OIDCRedirectURI /testautidc/redirect_uri
and register bothhttps://testidcproxy.ofima.ch/testautidc/redirect_uri
andhttps://lxinp.ofima.ch/testautidc/redirect_uri
as Redirect URIs in the Azure Active Directory configuration for the mod_auth_openidc Client