Thanks for your help. I found this, http://wiki.nginx.org/HttpSsiModule#.24date_gmt I am using $date_gmt variable.by hirenshah.05 - Nginx Mailing List - English
Thanks Brian and Dhaval. So there is no way other than installing additional module ??by hirenshah.05 - Nginx Mailing List - English
Thanks for your reply. I tried that. But looks like $time_local is only available for Log. It does not recognize $time_local in Server section. May be I am missing something. Is there way to make these variable available in anywhere in nginx conf ?by hirenshah.05 - Nginx Mailing List - English
Hi, I want add Current Time or Request Time in my header. Please let me know which variable I can use in, add_header X-Time $(TIME) proxy_set_header X-Time $(TIME) Thanks, Hirenby hirenshah.05 - Nginx Mailing List - English
Thanks. It is working now.by hirenshah.05 - Nginx Mailing List - English
I tried this, server { listen 80; server_name ""; location / { resolver 127.0.0.1; proxy_pass https://$host; //gives error. And $host value is same like above hostname "cds.hh.net" proxy_redirect off; } } but still not working. If I check error log it says, 375#0: recv() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53 Thankby hirenshah.05 - Nginx Mailing List - English
what should I specify in resolver?by hirenshah.05 - Nginx Mailing List - English
I want to use $host variable in proxy_pass. If directly hardcode Hostname in proxy_pass it is working fine. But if I use variable $host it is giving me "502 Bad Gateway" server { listen 80; server_name ""; location / { proxy_pass https://cds.hh.net; //working fine proxy_pass https://$host;by hirenshah.05 - Nginx Mailing List - English