0.0.0.0. As Nginx is sending the file I would like to replace the 0's with the $remote_addr variable in Nginx. So basically here's what I've got:
remote_addr = '0.0.0.0'; alert(remote_addr);
Config File for Nginx:
When I try the request, I still see 0.0.0.0 in the returned file. I've tried also using simply "Hello World" instead of $remote_addr and still see my default value.
The output of
nginx -V is as follows:
nginx version: nginx/1.2.7 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) configure arguments: --prefix=/opt/nginx --add-module=/home/vagrant/nginx/echo-nginx-module-0.42 --with-http_sub_module --with-pcre=/home/vagrant/nginx/pcre-8.32
I am still having the issue, but have updated my Nginx config. I did a curl of the JS file and see that Nginx is setting the Content-Type header to