Wrong URL at Password Reset

Dear all,

I have an issue with the password reset function.
After filling the form the requester gets an email like this
https://wiki.mydomain.com:80/bin/view/XWiki/ResetPasswordComplete?u=
The strange thing is the https at the beginning, which is correct and the port :80 at the end.

I have changed already in wiki.cfg the wiki.url.protocol=https but this had no effect
I’m running XWIKI 12.10.8 . The server is behind a reverse proxy HAProxy. This redirects all calls to the xwikiserver on port 8080 internally.
Any idea how to fix it?

why is it strange if it’s correct?

WDYM no effect? You said yourself that you get a HTTPS URL. Note that it’s not required if you access your wiki using HTTPS, see https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Configuration/#HHTTPS2FSSL

Also , it’s xwiki.url.protocol and not wiki.url.protocol.

Fix what? what is wrong?

It seems you access your wiki with HTTPS and port 80 and then it’s your proxy that redirects to 8080.

This is what I get when I use the link:
grafik
If I delete manually the “:80” from the link
like
https://wiki.mydomain.com/bin/view/XWiki/ResetPasswordComplete?
I get:
grafik
and all is fine.
How can I delete the “:80” from the generated link?

I found a solution: In HAProxy in the frontend (advanced mode) in the section Option pass-through
add: http-request replace-value Host (.*):80 \1:443