Well you didn’t give us anything to work one. First of does that file
exist
in the same directoy where test.php is. Can you provide your ngnix.conf,
maybe you have some redirects for eather php files, or for css files.
Are
permissions ok? Maybe Nginx cannot read that file?
It could be many things, but you need to give us more information, if
you
would like to get some help.
Thank You for your fast reply, i have resolved this by editing one of my
‘location’ in my nginx.conf file:
…
location / {
root /var/www/html;
index index.php index.html index.htm;
fastcgi_param REDIRECT_STATUS 200;
}
…
Previously this was ‘/usr/share/nginx/html’, but it was ‘var/www/html’
in
all other 'location’s.
On Sat, Jan 04, 2014 at 03:36:33PM -0500, Jonathan V. wrote:
default_type application/octet-stream;
include /usr/local/nginx/conf/mime.types;
I haven’t had time to test on other versions.
This could be the intended behavior, but the docs don’t suggest
that. usually a default_type only applies when the real type
can’t be found.
Most likely there is a directive with some non-strict syntax (like
“index”) before they configuration you’ve quoted, and there is no
semicolon after it. E.g., something like this:
index index.html
include /usr/local/nginx/conf/mime.types;
default_type application/octet-stream;
While the configuration looks like correct one with mime.types
included, it’s instead defines 3 index files (“index.html”,
“include”, “/usr/local/nginx/conf/mime.types”), and default_type -
but mime.types isn’t included.