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

NGINX configuration for TestRail


Im trying to integrate Testrail with nginx but had no success to it. Instead of running the .php it downloads it. Is there anyone who have a solution for this. It is always redirecting to index.php and downloads it.


Conf file:

server {
listen 80;
server_name localhost;

root /usr/share/nginx/html;
index index.php index.html index.htm;

location / {
    try_files $uri $uri/ /index.php?q=$uri&$args;

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    #fastcgi_pass php:9000;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_path_info;



Hi @windkisser I am just starting to look at migrating from Apache to Nginx and found your post here from about a year ago.

I notice that no one has responded to your post :frowning: I was wondering, did you have any success with running a Testrail instance and serving up with Nginx?