Hello, I'm modifying/extending proxy_pass so that the proxy url is dynamic, not fixed in a config file. Otherwise I want the rest of proxy_pass to behave the same. Looking at nix_http_proxy_module.c I'm not finding where the url is actually changed. I thought I'd found it in ngx_http_proxy_host_variable(), so I put code in there to change the value of the host variable to what I wanted. Bby GZ1 - How to...
Making progress! The /dc location wasn't working because it wasn't just rewriting the url, just proxying, so on my Glassfish server it was looking for /dc/..., which wasn't there. So for now I'll just use location / and figure out another way to differentiate the dynamic and static content by location. At least now I can reach Glassfish from nginx, which is pretty cool. Thanks for the leadby GZ1 - Nginx Mailing List - English
> Don't use variables in proxy_pass directive unless you really know > why you need them and what it implies. Ok, I changed that line to this: proxy_pass localhost:8080; Still getting the same error unfortunately.by GZ1 - Nginx Mailing List - English
Hello, I'm migrating an app from Apache/JBoss to nginx/Glassfish. I think I'm starting to grasp the server-location design but am getting errors when I try to proxy a request to Glassfish. Here's a clip from my config: server { server_name www.foobar.com foobar.com; root html/prod; index index.html; location /dc { proxy_pass $scheme://localhost:8080$requestby GZ1 - Nginx Mailing List - English