nginx adding index.html to requests

killer1337 nginx-forum at
Sun Oct 19 05:18:34 UTC 2014

Hi everybody,
I am trying to set up a web app called opennote on my nginx server but
somehow it doesn't work. When I call the page the error log shows:

2014/10/16 13:12:39 [error] 21400#0: *11
"/var/www_opennote/Service/service.php/config/index.html" is not found (20:
Not a directory), client:, server: , request: "GET
/Service/service.php/config/ HTTP/1.1", host: "",
referrer: ""

According to the developer of the app the problem appears to be that ngix is
adding the index.html to Service/service.php/config/

So the application is requesting Service/service.php/config/index.html when
it should be requesting Service/service.php/config/.

I already tried to add 

location / {
    autoindex off;

to my config but it didn't help.

My nginx config is:

server {
    listen 444 ssl;
    ssl_certificate     bla.crt;
    ssl_certificate_key bla.key;
    set $root_path "/var/www_opennote";
    root $root_path;
    set $socket
    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass $socket;
        fastcgi_index index.php;
        include fastcgi_params;
    large_client_header_buffers 4 32k;

You can find my discussion with the developer here:

Thank you for any hint on how I can solve my issue!

Posted at Nginx Forum:,254127,254127#msg-254127

More information about the nginx mailing list