Questions tagged [nginx-reverse-proxy]

When a reverse proxy proxies a request, it sends the request to a specified proxied server (http or other), fetches the response, and sends it back to the client, as if it came from the reverse proxy itself.

More information: https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/

2738 questions
0
votes
0 answers

Nginx Configuration for GET request with Body not working

I have a GET endpoint configured in AWS API gateway. When I trigger the endpoint directly it's working fine. Below is the endpoint which is a GET request with a json body, curl -X GET \ -d '{"pageSize":"10", "pageNumber":"1", "id": "xyz"}' \ …
0
votes
0 answers

Deployment of a vue3 app from behind an nginx-proxy using docker compose

I have small app with a Django backend and vue3 front end. I am managing it all with docker compose I have both the backend and frontend services behind an nginx-proxy service exposed to the web. This has worked great during development but now I…
tanbog
  • 600
  • 9
  • 28
0
votes
1 answer

Combining proxy_pass and auth_basic leads to infinite loading

I have a little problem with proxy_pass and auth_basic combining in the same location. I use nginx as reverse-proxy for Bluemap (https://bluemap.bluecolored.de/) I and want to enable http authentification. My current configuration: location /map/ { …
0
votes
0 answers

NGINX Config with NoVnc Not loading properly

So, I am trying to load this nginx config that allows for usage of a regex string variable to be passed and proxy'd to the correct corresponding IP address as well as port number that is encrypted using base 64. However when I attempt to encrypt…
0
votes
0 answers

How to add rewrite rule for same prefix?

I have following URL's /application/appui this runs angular app -> it has its own index.html and static files /application/api/v1/testapp1 -> proxy pass to upstream services /application/api/v1/testapp2 -> proxy pass to upstream services / -> it…
0
votes
0 answers

Host masking (Proxy) in Nginx

I am kinda new to Nginx. I am trying to create a reverse_proxy server. I have XAMPP running on localhost:8080 and I run Nginx on example.test:80 I don't want the URL to change on the client-side (in the browser) but no matter what I try, it keeps…
0
votes
0 answers

nginx getting files from different server

I have a bunch of devices and I want to create a reverse proxy to go to the websites of these devices which are hosted on their IP. The problem is that when I get redirected to the site nothing loads in because the website is trying to get the files…
somedude
  • 53
  • 3
0
votes
0 answers

NGINX reverse proxy for different port

I would like to set up a conf file, which basically listen to all request on a specific port on the nginx server, and all these request should be forwarded to a another group of servers which handle these request. My set up is like this…
adamski
  • 3
  • 3
0
votes
0 answers

DSpace 6.4, NGINX, redirect problem after switching language

I have a DSpace 6.4 with JSPUI and nginx for proxy (ip->domain) and http->https redirect. When I am clicking on language button happens redirect from https to http to ip address with 8080 port (will change later) and looks like this:…
Andrew
  • 1
  • 3
0
votes
0 answers

Headers is not received by webapp hosted in nginx

i have hosted a webapp in nginx that need to make a http request to the api server hosted in same nginx server , the req.body data is working sucessfully between the two servers, but the authorization header is not received by the webapp hosted in…
Venkat Cpr
  • 153
  • 1
  • 11
0
votes
1 answer

Nginx configuration proxy, access returns 301?

This is the nginx configuration: location /debug { proxy_pass http://127.0.0.1:32339/; proxy_set_header Host $http_host; } Expected visits http://127.0.0.1:80/debug/a/b Proxy to http://127.0.0.1:32339/a/b The actual server returned 301…
0
votes
0 answers

Is it possible to match multiple paths with preferred prefix?

I have two locations '/mysite/india' and '/mysite/usa' that share same definition. I know I can specify this using regex (without ^). which I do not want to use as this is a very frequently hit endpoint. Anotehr way to is to duplicate the whole…
bladeWalker
  • 978
  • 1
  • 13
  • 30
0
votes
0 answers

How to setup a nginx reverse proxy for a minikube service

I have a minikube service running on http://192.168.49.2:31746 on the server with IP address 10.128.135.6 When I curl http://192.168.49.2:31746 on the server on which Minikube is running, I can access the service. However, I want to access this…
0
votes
1 answer

Reverse proxy: forward all requests to sub-path of upstream app

I am using Nginx as a reverse proxy. I have an upstream call app_demo. How do I route all incoming requests to the upstream using a sub-path as root? For example, if the incoming is to /page1, it should be forwarded to /module1/page1 in the upstream…
Old Geezer
  • 14,854
  • 31
  • 111
  • 198
0
votes
0 answers

Angular returns index.html when calling nodejs api with Nginx reverse proxy

Angular always returns the index.html file content as a response (instead of JSON data) when calling NestJS (NodeJS) APIs with an Nginx reverse proxy when I access to my webapp from a public IP x.x.x.x but when I access it from localhost (same…
MHDaouas
  • 159
  • 2
  • 13