# Help with PHP arguments

**URL:** <https://www.ruby-forum.com/t/help-with-php-arguments/203546>\
**Category:** NGINX\
**Created:** [February 22, 2011, 6:10pm UTC](https://www.ruby-forum.com/t/help-with-php-arguments/203546 "2011-02-22T18:10:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 22, 2011, 6:10pm UTC](https://www.ruby-forum.com/t/help-with-php-arguments/203546/1 "2011-02-22T18:10:06Z")

</div>

Hello,

I am having a real issue in getting my head around how to identify in  
the location when URL arguments are being passed on PHP requests.

If I go to the URL [https://www.somedomain.com](https://www.somedomain.com) it works, if I go to  
[somedomain.com](https://www.somedomain.com/help.php) it works, but when I go to  
[somedomain.com](https://www.somedomain.com/help.php?id=123456) it fails and sends the  
request to the default site in NGINX.

This is what I have in my file:

server {  
listen 123.123.123.123:443;  
server\_name [www.somedomain.com](http://www.somedomain.com);

ssl on;  
ssl\_certificate /etc/pki/tls/certs/proxy01c.pem;  
ssl\_certificate\_key /etc/pki/tls/private/proxy01k.pem;

ssl\_session\_timeout 5m;

ssl\_protocols SSLv2 SSLv3 TLSv1;  
ssl\_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;  
ssl\_prefer\_server\_ciphers on;

access\_log /var/log/nginx/www.somedomain.com-access.log main;  
error\_log /var/log/nginx/www.somedomain.com-error.log info;

gzip on;  
gzip\_http\_version 1.0;  
gzip\_comp\_level 2;  
gzip\_proxied any;  
gzip\_types text/plain text/html text/css application/x-javascript  
text/xml application/xml application/xml+rss text/javascript;

location ~\* ^/|.php$(.\*) {  
proxy\_pass https:/ /www.somedomain.com ;  
proxy\_redirect [https://www.somedomain.com/](https://www.somedomain.com/) /;  
proxy\_set\_header Host $host;  
proxy\_set\_header X-Real-IP $remote\_addr;  
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;

client\_max\_body\_size 2g;  
client\_body\_buffer\_size 128k;  
}  
}

Sorry, NGINX is very new to me so any help would be gratefully  
appreciated.
