Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

TestRail Login Redirects to HTTP



I’ve installed TestRail on an Ubuntu 16.04 server, and I also have an AWS Elastic Load Balancer setup. What I wanted was to have my AWS ELB serve my TestRail installation via HTTPS.

On the login page, I am able to access it via HTTPS, but then whenever I attempt to login, I notice that the request is on HTTP, is there a setting that I am missing that should be configured so that it would redirect on HTTPS?

By the way, I’ve used a rewrite rule in apache2 setup to achieve TestRail being on HTTPS. Here’s a sample.

<VirtualHost :80>
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !http
RewriteRule ^(.
)$$1 [R=permanent,L]
ServerAdmin webmaster@localhost
DocumentRoot /var/www/testrail


I agree… why does it do this?

I haven’t been able to get the rewrite to work, so I’m stuck serving the login (of all screens) over http.


Hi everyone,

Please see my other response here: