Wrong redirecetion after login

Hello,

I installed Request Tracker inside a Docker container and everything seems to be working fine.
There only one problem:

I can access the webpage using https://www.example.com/rt.
If I enter a correct combination of a username and a password it logs me in succesfully but redirects me to https www example com instead of https www example com/rt.

Many Thanks

Part of my RT Config:

Set($WebDomain, “www example com”);
Set($WebPort, 8080);
Set($WebPath, “/rt”);
Set($WebURL, “https www example com”);
Set($WebBaseURL, “https www example com/rt/”);
Set($CanonicalizeRedirectURLs, 1);
Set(@ReferrerWhitelist,qw(www example com 443));
1;

  1. Always post the exact version you are running. Not everything works identical in all versions.

  2. Read the documentation of the options in RT_Config.pm. Do not randomly set some options to something you think may fit. Check the documentation first. If you read the documentation for WebURL you’ll see that your setting is completely wrong. WebPort is also wrong if you want to use https.

So basically set WebDomain, WebPort and WebPath correctly and remove all the other settings. You are just breaking things.

Thank you for anwering

I am using Version 4.4.2
I made a mistake when I copied the Config file. This is the right one

Set($WebDomain, “www example com”);
Set($WebPort, 8080);
Set($WebPath, “/rt”);
Set($WebURL, “https www example com”);
Set($WebBaseURL, “https www example com/rt/”);
Set($CanonicalizeRedirectURLs, 1);
Set(@ReferrerWhitelist,qw(www example com 443));
1;

I set the WebBaseURL-option because I wasnt able to force https otherwise.
I set the CanonicalizeRedirectURLs-option because I use RT inside the docker container is accessed through a reverse proxy.
I set the RefferWhitelist-option because RT was reporting a cross site request forgery.

After login I get redirected to www example com instead of www example com/rt.
I am then able to access the page by typing www example com/rt in the address bar and use everythind as it supposed to be.

Greetings

Still same answer. Read my answer.

Read the documentation. If you had read it you would see that your configuration of WebURL and WebBaseURL is completely wrong. Once you mess up the fundamental configuration all other “fixes” make things only worse…

If you want to redirect users from http to https then do that in your webserver/apache.