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

NGINX configuration for TestRail


#1

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.

Thanks

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;
}

}