Nginx Not Passing URL Parameters
- by jmccartie
Messing around with Nginx ... for some reason, it looks like none of my URL parameters are being passed. My homepage loads fine, but a URL like "http://mysite.com/more.php?id=101" throws errors, saying that the ID is an undefined index.
I'm assuming this is something basic I'm missing in a conf file.
Some info:
conf.d/virtual.conf
server {
listen 80;
server_name dev.mysite.com;
index index.php;
root /var/www/dev.mysite.com_html;
location / {
root /var/www/dev.mysite.com_html;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /var/www/wap/dev.mysite.com_html/$fastcgi_script_n
ame;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
Error log:
2009/06/22 11:44:21 [notice] 16319#0: start worker process 16322
2009/06/22 11:44:28 [error] 16320#0: *1 FastCGI sent in stderr: "PHP Notice: Undefined index: id in /var/www/dev.mysite.com_html/more.php on line 10
Thanks in advance.