Nginx conf for codeigniter result 404
<p>I have setup my nginx conf following this link for my codeigniter server block
<a href="https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter/" rel="nofollow">https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter/</a>
with some addition like this</p>

<pre><code>server {
    listen       80;
    server_name  domain.com;
    autoindex on;

    root   /var/www/server;
    index index.php index.html index.htm;

    location / {
        try_files $uri $uri/ /index.php;

        location = /index.php {
              fastcgi_pass unix:/var/run/php5-fpm.sock;
              fastcgi_param  SCRIPT_FILENAME /var/www/server$fastcgi_script_name;
              include        fastcgi_params;
        }
    }

    location ~ \.php$ {
        return 444;
    }


    location ~* ^/(assets|files|robots\.txt) { }
    location ~ /\.ht {
        deny        all;
    }
}
</code></pre>

<p>But turns out still routed to error_404 default by CI. Anybody could enlighten me? Thanks</p>