Projects tigase _server tigase-http-api Issues #117
Http redirection doesn't work in docker (#117)
wojciech.kapcia@tigase.net opened 3 years ago

On tigase.im, despite having correct redirection configuration (from #issue #113), the redirection doesn't work.

wojciech.kapcia@tigase.net commented 3 years ago

The problem was caused by the usage of request.getServerPort() to match local port config, which was failing if the request was being forwarded and port was being switched, for example in our case Tigase http-api was configured to listen on port 8080 (default) but on the outside we were listening on port 80 (port forwarding in docker), and because there wasn't any configuration for port 80 in Tigase then no redirection has been made.

Using request.getLocalPort() solves the problem.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.2.0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-http-api#117
Please wait...
Page is in error, reload to recover