Welcome! Log In Create A New Profile

Advanced

Re: Passing variables via passenger_set_cgi_param

dhaval deshpande
October 05, 2011 11:52AM
ok never mind. I figured out myself.






dhaval deshpande wrote in post #1025082:
> Hi,
> My nginx location configuration looks like this
>
> location ~* ^/z/(\d+)$ {
> set $mID $1;
> set $tag_type 'z';
>
> access_log /opt/nginx/logs/bright_tag.log
> bright_tag_log;
> if ($arg_uid ~* '.+') {
> access_log /opt/nginx/logs/product_uid.log
> prod_log;
> }
>
>
> if ($arg_orderNumber ~* '.+') {
> access_log /opt/nginx/logs/conversion.log
> conv_log;
> }
>
> if ($arg_prodID ~* '.+') {
> access_log /opt/nginx/logs/product_uid.log
> prod_log;
> }
>
> root html/bright_tag/public;
> passenger_enabled on;
> passenger_set_cgi_param UID $uid_set$uid_got;
> }
>
> When I hit the uri /z/123, I am able to access UID parameter in my
> sinatra application. But when I hit this uri /z/123?prodID=25, Nginx
> does not pass UID parameter to my application. I googled around for a
> while about this issue but everything was in vain. Can anyone give some
> suggestions regarding this?
>
> Thanks,
> Dhaval.

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Passing variables via passenger_set_cgi_param

dhaval deshpande October 04, 2011 09:30PM

Re: Passing variables via passenger_set_cgi_param

dhaval deshpande October 05, 2011 11:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready