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
1 answer

Question about forwarding ssl payload to upstream tcp server

These days, I am working on forwarding ssl payload to upstream tcp server using nginx, and the final nginx configure comes after a lot of experiment: stream { map $ssl_server_name $stream_map { aby3_task_1 upstream_task_1; …
纪老猴子
  • 33
  • 1
  • 9
0
votes
0 answers

nginx reverse proxy keeps showing the default website

I created an HTTP API with ec2 instance integration. Two python applications are running on the ec2 instance on ports 8002 and 5005. There is an nginx reverse proxy running on ec2 instance that should direct requests from API gateway to the correct…
0
votes
1 answer

How do I deploy a Next.js app to an addon domain on cPanel, which listens to port 3000 without affecting my other domains?

I have a website running on my main domain added in cPanel listening to the main "80" port and can be opened without adding the port to the URL. for example: "http://mywebsite.com". Now I want to add another website on a new addon domain. But this…
0
votes
0 answers

nginx reverse proxy config for Jenkins, and some 504 and slow loading problems

I am battling some issues with performance of the web GUI, and having trouble tracking it down. This is a new server, and the largest of 7, the other 6 aren't getting these issues and it's probably due to lower size and utilization. I inherited the…
Jlom84
  • 3
  • 4
0
votes
0 answers

How I combine multiple react apps in one app

I have two apps build in react using vite and I want to combine those two apps in one on the same port: For example in nginx I want something like this: http://localhost -> redirect to http://localhost:3000; http://localhost/path-to-app2 ->…
Florin D
  • 51
  • 4
0
votes
0 answers

Nginx with Nuxt not serving the domain

I am new to Nginx and have been trying to set up server blocks in Nginx, locally on macOS. The purpose is to render Nuxt app when a user requests a certain domain. However, even after spending hours and hours on it, I am not able to identify why I…
sinwon
  • 1
  • 1
0
votes
0 answers

Reverse proxy and rewrite URL in NGINX

I want to redirect requests to our internal repository servers without edit repository addresses in package manager's configuration. Here is the scenario: Add internal IP (NGINX Server) address to hosts file as "ubuntu.com" or any other domain in…
0
votes
0 answers

Failure when using wss:// connection with laravel-websocket package behind nginx proxy

I am using dockerized environment for laravel project. Everything is glued by nginx proxy. There is additional docker container to run laravel-websockets server. It works when I try to connect to it using postman. It connects, I cand send message to…
0
votes
0 answers

Portal for ArcGIS : Can't login due to url wrong port after nginx reverse proxy

I'm building an NginX reverse proxy (Ubuntu Server 22.04.1 - NginX 1.22.1) to open an internal Portal for ArcGIS to extranet. The reverse proxy listen to 8054 and redirects to 2 internal servers using usual TLS 443 port Everything works fine except…
Kzone
  • 67
  • 4
0
votes
0 answers

Proxy pass to the upstream is returning incorrect response code [404]

Proxy pass to the upstream is returning incorrect response code [404] even though the request is a success [200] from the backend. upstream backend { server host; } server { listen 80 default_server; server_name _; …
0
votes
0 answers

flask login page redirection not working with gunicorn and nginx reverse proxy server

I have the setup "NGINX as reverse proxy" + flask + gunicorn. When I run the gunicorn on command line everything works fine and I can login. # gunicorn --bind xx.xx.xx.xx:5000 run:app But when I start gunicorn as a service, the login page gets…
Sandeep_Patil
  • 171
  • 3
  • 12
0
votes
1 answer

Reverse proxy for react contaiener

I have 2 running docker containers. N1 with react app, N2 with nginx for reverse proxy. Docker command docker run -d --name app3 -p 3000:3000 testApp started react container, and now it is accessible on 192.168.1.103:3000 (host is linux server on…
David
  • 4,332
  • 13
  • 54
  • 93
0
votes
0 answers

NGINX add_header, X-Forwarded-FOR, X-Real-IP isn't working with my config

So I have spent quit a lot of time setting up and getting into NGINX because I wanted to encrypt the traffic to my Subdomain/ API which is running in a Docker with SSL. To get the IP which is really requesting the container some other headers are…
0
votes
0 answers

Nginx proxy_pass: put response body into cookie

totally new to nginx, I am trying to implement some oauth2 web flow: client ask for login, the nginx I am using as reverse proxy redirects to authentication provider, nginx proxyies the callback to auth provider getting the auth token with the…
Francesco
  • 1,742
  • 5
  • 44
  • 78
0
votes
0 answers

nginx config shows 404 error page / configuracion de nginx muestra pagina de error 404

Good day i'm trying to make a test site to understand nginx, i have this config files. when i make a query to the sites shows me the 404 nginx error page, what im doing wrong... thanks for ur answers /etc/nginx/sites-enabled: In this part of the…