Welcome Guest, Not a member yet? Register   Sign In
Problem with query strings using CodeIgniter with nginx
#2

[eluser]Brian Loomis[/eluser]
I'm having the exact same problem right now and it's driving me up the wall. I have to have a query string working and nginx seems to bark at what I'm doing. I even have the 404 going explicitly to index.php with 404 still showing.



server {

listen 192.168.100.194:80;
server_name feed.xyz.com;

access_log /home/webuser/log/access.log;
error_log /home/webuser/log/error.log;

if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?/$1 last;
break;
}

# catch all
error_page 404 /index.php;


location / {

# set 404 error page
error_page 404 = /index.php;

# set the doc root
root /var/www/html/feed.xyz.com;

# pass scripts to FastCGI
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /usr/local/nginx/conf/fastcgi.conf;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /var/www/html/feed.xyz.com/index.php;
fastcgi_intercept_errors on;
}


location ~ /\.ht
{
deny all;
}



}


Messages In This Thread
Problem with query strings using CodeIgniter with nginx - by El Forum - 09-29-2010, 07:54 AM
Problem with query strings using CodeIgniter with nginx - by El Forum - 09-29-2010, 02:16 PM
Problem with query strings using CodeIgniter with nginx - by El Forum - 10-22-2010, 06:05 AM
Problem with query strings using CodeIgniter with nginx - by El Forum - 10-29-2010, 07:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB