how to reverse proxy via nginx a specific url? -


I have a server running http: // localhost: 8080 , me A specific URL is required This server has to be proxied by NGN

For example, I can only http: // localhost: 8080 / test / (. *) to Http: // localhost / test / (. *) .

I http: // localhost / .

I created it in some way and it worked. Thanks anyway for your comments :)

  server {80 says; # ... other stuff upstream backend 1 {server 127.0.0.1:8080; } Location / test / {proxy_pass_header server; Proxy_set_header host $ http_host; Proxy_redirect closed; Proxy_set_header X-real-IP $ remote_adder; Proxy_set_Header x-schema $ scheme; Proxy_pass http: // backend1 / test /; }}    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -