[eluser]bretticus[/eluser]
The problem is not codeigniter and there's nothing you can do with your code to get it working. Case in point, it works fine on your installation but not on the server. You will most likely need to get into contact with the administrator for nginx.
By the way, here's a snippet of my nginx php-fpm codeiniter config. Works great.
Code:
location / {
root /opt/directories/the_site/public/;
index index.php;
# this serves static files that exist without running other rewrite tests
if (-f $request_filename) {
expires 30d;
break;
}
# this sends all non-existing file or directory requests to index.php
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?$1 last;
}
}
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
expires 30d;
root /opt/directories/the_site/public/;
}
# pass the *.php scripts to php5-fpm listening on tcp port 9000
#
location ~ \.php$ {
root /opt/directories/the_site/public/;
index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $http_host;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_ignore_client_abort on;
}
## Disable viewing .htaccess & .htpassword
location ~ /\.ht {
deny all;
}