Nginx reverse proxy 404 multiple apps

by Zakaria Jawwad   Last Updated September 10, 2019 19:04 PM - source

I'm configuring nginx reverse proxy functionality. It's not working for apps as written below. I'll give you an example of /hbase/. When I enter url /hbase/ in browser, I get 404 it redirects to /master-status ( hbase path) but when I manually edit /hbase/master-status in browser. It works, Anyone can help

server {
    charset utf-8;
    listen 80;
   # Hbase Works perfectly using location / , not working      like below.
  location /hbase/ {
  proxy_pass http://localhost:16010;
  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;
  proxy_redirect off;
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "Upgrade";
  }


Related Questions




Wordpress Reverse Proxy with Cloudfront and S3

Updated August 20, 2016 09:01 AM

Nginx reverse proxy appends container port

Updated February 28, 2019 03:04 AM