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

How to test the connection between postgresql, Matrix synapse and Nginx Server on Centos8

I getting problem with the connecting nginx server, postgresql and Matrix Synapse Postgresql it is running see the systemctl status below . -Synapse1 is the database and roshyara is user which I have already added in the postgresql . hb_pga_conf…
0
votes
1 answer

Rewrite URL's to Subdomain in NGINX

I have several url's that I would like to rewrite in NGINX for example: From: app.example.com/calendar To: calendar.example.com Or From: app.example.com/meetings To: meetings.example.com I would still like to keep the app.example.com so it's not…
0
votes
0 answers

certbot challenge fails with jellyfin as it returns 404

jellyfin container runs behind nginx reverse proxy. When I try to get an ssl certificate, jellyfin unfortunately returns a 404 error. Anyone know what I need to change in the configuration to make it work? my docker-compose.yml services: …
0
votes
1 answer

How Do I Setup NGINX reverse proxy for a Node.js app with Linode NodeBalancer so that I don't get 502 Bad Gateway

I have set up a Linode NodeBalancer to handle HTTPS traffic for my website, https://adamhelm.com, which listens on port 443. I have also set up an nginx server to route traffic to my Node.js application on port 3000 with the following nginx…
adamfhelm
  • 35
  • 8
0
votes
0 answers

NGINX reverse proxy relative links, issue with routed location

So I have 2 docker containers running different Flask apps, port forwarded to the host. The host has a NGINX server redirecting requests to the server to the respective containers. The "sites available" file for the NGINX server is as shown: server…
aldo
  • 125
  • 1
  • 7
0
votes
0 answers

NGINX use the main upstream server when it is marked as temporary disabled

I set up two upstream servers as failover in my nginx upstream backend { server 10.0.0.10 fail_timeout=48h max_fails=1; server 10.0.0.20 backup; keepalive 25; } server { listen 80; server_name _; client_body_buffer_size 500M; …
0
votes
0 answers

How to override the value of a variable $host

I tried to change the value of the $host variable to $http_x-real-host: set $host $http_x-real-host; In response, I receive a message like: 11:53:51 [emerg] 12781#12781: the duplicate "host" variable in /tmp/nginx/nginx-cfg350749497:710 I can’t find…
0
votes
0 answers

UNC paths are not supported. Defaulting to Windows directory. node:internal/modules/cjs/loader:1050

'\\wsl.localhost\Ubuntu\home\aadam\a387-jarkom-labs' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. node:internal/modules/cjs/loader:1050 throw err; ^ Error:…
0
votes
0 answers

multi-website host behind nginx reverse proxy

I have followed what seems like countless sites on how to set-up a reverse proxy with nginx. I am going to run several websites in docker containers on an EC2 instance. The instance is in a target group behind an ALB - SSL termination at the ALB. I…
JDBennett
  • 1,323
  • 17
  • 45
0
votes
0 answers

when use nginx Cache-Control , nginx wont serve cached data

i have a config for my django app deployment with nginx and want to cache some of data server { listen 80 default_server; listen [::]:80 default_server; root /app/; location / { proxy_pass http://landing_page; proxy_set_header…
0
votes
0 answers

How can I make an nginx reverse proxy to return a custom web page for different subdomains?

I want to make a web page that will be returned by nginx everytime I type a subdomain in the browser. For example, if I type exemple.com in the browser I want to see my custom web page. Also, if I will try to type any other url, the same page should…
0
votes
0 answers

nginx proxy_pass to location returns 401 error

I have a WebDAV server set up, with its root folder /SomeVolume/webdav/contents and address 192.168.1.2:12345. User and password are set and the server can be accessed from a browser. I am directing a domain name to the same machine using nginx,…
Cirrocumulus
  • 520
  • 3
  • 15
0
votes
1 answer

Nginx get error when using in a docker-compose file

I use a docker-compose file with 3 service (node-red, mosquitto and mongo) and and I want use nginx as load balancer of node-red service: version: '2.2' networks: Platform-Network: name: IoT-Network volumes: Platform: MQTT-broker: …
miladmrm
  • 1
  • 1
0
votes
1 answer

How can I make a nginx.conf file to return different web pages for different subdomains?

I want to make my nginx to show a web page for this subdomain: abc.xyz.com and a different web page for this subdomain: abcd.xyz.com. How can I make that? I tried to change the location block but it didn't work. Please help me.
Joe Spark
  • 1
  • 1
0
votes
1 answer

Can't get Pocketbase running behind Ngnix as a reverse proxy

I want to use Pocketbase behind Ngnix as a reverse proxy on my Ubuntu-VPS. I followed the documentation on https://pocketbase.io/docs/going-to-production/. I wanted to put pocketbase to /api/. When i try to connect to the pocketbase admin panel the…
ts_97
  • 35
  • 4