title: nginx + codeigniter configuration not working on CentOS 7?
body: <p>I am new on nginx and try to find the issue on StackOverflow but not found the exact one on forums.
  After successful installation of nginx, MySQL and php-fpm I test the php.info that was working fine.</p>
  
  <p>I am moving the CodeIgniter project to the nginx from apache server. I edit the <code>nginx.conf</code> file that has code</p>
  
  <pre><code>server {
      listen       80;
      server_name  173.249.40.xxx;
  
      # note that these lines are originally from the "location /" block
      root   /usr/share/nginx/html/ci;
      index index.html index.htm index.php;
  
      location /ci {
          try_files $uri $uri/ /index.php;
      }        
  
      error_page 404 /404.html;
      error_page 500 502 503 504 /50x.html;
      location = /50x.html {
          root /usr/share/nginx/html;
      }
  
      location ~ \.php$ {
          try_files $uri =404;
          fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
          fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          include fastcgi_params;
      }
  }
  </code></pre>
  
  <p>it was working fine for <code>php.info</code> like my path is <code>http://173.249.40.xxx/ci/info.php</code> but not working for CodeIgniter <code>controller name</code> like <code>http://173.249.40.xxx/ci/index.php/Welcome</code> when called. I try from
  <a href="https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter/#" rel="nofollow noreferrer">https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter/#</a>
  for CodeIgniter application but it also not work for me.
  The CodeIgniter application path is <code>'/usr/share/nginx/html/ci/;'</code></p>
  
  <p>Please suggest me something. how can I fix it?</p>