Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

425
Views
nginx reverse proxy , multiple remote apps and same port

I'am trying to setup a nginx server as a reverse proxy

My goal is :

when a user tape in navigator http://@IP nginx server/app1 , he will be redirected to app1 , which the app1 is running to a different server

thisn is my config :

server 
    {
        client_max_body_size 100M;
        listen         80;
        server_name    172.16.20.15;
        fastcgi_hide_header Set-Cookie;
        location / {
        add_header Set-Cookie "lcid=1033;Domain=.ebrueggeman.com;Path=/;Max-Age=31536000";
            gzip_static on;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header X-Real_IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
            # This is necessary to pass the correct IP to be hashed
            real_ip_header X-Real-IP;
            root   html;
            index  index.html index.htm;

            try_files $uri $uri/ /index.html;

        }

        location /app/ {

            proxy_pass http://172.16.20.17:3333/ ;

            proxy_http_version 1.1;

            proxy_set_header Host  $host;

            proxy_buffering off;

            proxy_set_header Upgrade $http_upgrade;

            proxy_set_header Connection "Upgrade";

        }

        location /sam/ {

            proxy_pass http://172.16.20.17:4444/ ;

            proxy_http_version 1.1;

            proxy_set_header Host  $host;

            proxy_buffering off;

            proxy_set_header Upgrade $http_upgrade;

            proxy_set_header Connection "Upgrade";

        }

    }
}

Chrome show : not found when i tape https://172.16.20.15/app/

Any idea or code to ad in my configuration ?

Thanks

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!