Report this

What is the reason for this report?

Subdomains nginx

Posted on May 10, 2014

Hello! When i load my subdomain.site.com browser asks whether to save the file? Nginx subdomain conf

 server {
        listen   80;
        server_name test.site.com;
        root /usr/share/nginx/www/test;
        index index.php index.html;
        
        location / {
                try_files $uri =404;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
                
        }
 }

This conf works great for non php files(e.g. index.html) What i need to do?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.