Thanks Valentin V. Bartenev !! I was using it before the line proxy_pass http://xyz.com After placing the code after proxy_pass, I am able to see the values.. Regards, Sunnyby tsunny - Nginx Mailing List - English
Hello, I want to access the value of $upstream_addr. Below is the code, location / { echo "up = $upstream_addr"; } The response is just "up = " . What could be the reason for this?by tsunny - Nginx Mailing List - English
Hello, How to send the value of a variable to a shell program using os.execute()? I want to send the value of $uri to my shell program. Below is my code, location / { set_by_lua $result 'os.execute("/tmp/test.sh $uri")'; } If I access $1 in my program, the value is just 'uri' not the value of the '$uri'. Can please anyone tell me how to do this correctly. Thby tsunny - Nginx Mailing List - English