Http error 405 when trying to log in to my upsource server

HTTP ERROR 405

Problem accessing /hub/auth/login. Reason:

    HTTP method POST is not supported by this URL

I have my server fronted by an F5. The F5 does the following:
1) redirects http://upsource.mydomain.com to https://upsource.mydomain.com
2) terminates the SSL connection for https://upsource.mydomain.com and sends the traffic to http://myserver.mydomain.com:8080

I have configured the upsource server as follows:
./bin/upsource.sh configure --listen-port 8080 --base-url https://upsource.mydomain.com/
I had to manually exit ./internal/services/configurationWizard/service-config.properties as it still contained the old server name. When I open https://upsource.mydomain.com, I get the login page. After entering the credentials I get the error above on this url:

https://upsource.mydomain.com/hub/auth/login?response_type=token&client_id=d62b8e4e-864e-4cac-8624-f4a68a0cdcb8&redirect_uri=https:%2F%2Fupsource.mydomain.com%2F&scope=d62b8e4e-864e-4cac-8624-f4a68a0cdcb8%200-0-0-0-0%20YouTrack%20VCS%252520Hosting%20VCS%2520Hosting&state=37a16737-1892-4db1-b50c-c6ddb510f436

1 comment
Comment actions Permalink

I was able to resolve this with appropriate X-Forwarded iRule I found here:

https://devcentral.f5.com/s/question/0D51T00006n5Sja/how-to-enable-xforwardedhost-

0

Please sign in to leave a comment.