[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;
}
}