File Download being thrown
January 12, 2014 02:53AM
Hi there,
I'm pulling my hair out here. I have nginx and php installed they work just fine...as long as I type localhost/index.php into my browser. If I just type localhost it throws a download dialog box.
it's the same with a simple index.html. I have to explicitly state the full path and file name in my browser or else a file download is thrown.
if you know of why this might be happening i'd love to know. thanks
here's my default site config:

server {
listen 80;
root /var/www;
index index.php index.html index.htm;
location ~ /.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready