Question
Subdomains nginx
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?
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×