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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -