Questions tagged [nginx-reverse-proxy]
283 questions
0
votes
1 answer
How to allow connections only from frontend container to backend container?
I'm trying to setup my frontend, backend and my DB using docker. Here are the conditions where only my frontend container should make request to backend and not to the public. I have written a conf file but that still I'm able to access the backend…

snowlash
- 3
- 3
0
votes
0 answers
100 concurrent requests to a Django-App with Gunicorn lead to "54: Connection reset by peer" and 502's
I'm hosting a Django-App which serves as an API-Endpoint. Unfortunately the App which uses the API does a lot of concurrent requests on page-load (in the realm of 80-90 requests).
Nginx is running as the reverse-proxy in front of gunicorn and…

Subito
- 388
- 1
- 3
- 11
0
votes
1 answer
NGINX config proxy_set_header Host $host prevents IP address from being set
My NGINX server has following Server Block
upstream main {
least_conn;
#Add entries one per upstream server
server web01:4000 max_fails=3 fail_timeout=5s;
server web01:4001 max_fails=3 fail_timeout=5s;
}
server {
…

strange
- 3
- 2
0
votes
0 answers
Is it okay to pass secrets through the headers of a reverse proxy?
So, I've set up a reverse proxy for multiple domains in nginx like this:
server {
listen 80;
listen [::]:80;
root /var/www/nginx;
index index.html index.htm;
server_name example.com example.org example.net example.nl;
…

Wim ten Brink
- 1,055
- 1
- 6
- 13
0
votes
1 answer
NGINX reverse proxy on 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
- 1
- 1
0
votes
0 answers
nginx reverse proxy gives 400 when defining location
I want to create a reverse proxy to access my ip camera (10.10.10.31). But for some reason when I try to change my location from "/" to "/cam1" I get a 400 bad request. I can see it is trying to acces 10.10.10.31/cam1 but that does not exist.
How…

somedude
- 1
0
votes
0 answers
Rate limit specific PHP endpoints when running Nginx with php-fpm
Like many apps, I have some endpoints that are more sensitive than others, such as login & password reset, and need rate limiting. However, nginx handles all requests for PHP resources through a standard location handler that proxies PHP-FPM:
…

Synchro
- 3,148
- 6
- 27
- 38
0
votes
1 answer
How can I achive this behavor in nginx
What is the configuration needed in Nginx to achieve the following behavior:
Whenever a request is received, it should be forwarded to application A; if application A returns { "allowed" :true} in response, the same request should be forwarded to…

Alan
- 1
- 1
0
votes
1 answer
Nginx split the URI into variables to use on proxy_pass
I'm tring to get the URI parts to then pass it to the proxy_pass url. But I don't know about regex to do this.
I need to get the first and last URI into a variables to pass it on the proxy_pass like this:
https://example.com/user/port
to
proxy_pass…

user1505698
- 11
- 2
0
votes
1 answer
Multiple (2 or more) physical servers, same IP, nginx setup
maybe you can help me...
I have about 10 wordpress websites that run on the same linux server running on nginx, everything works.
Now I have a need to establish new physical linux server (with new linux OS) that would also run nginx websites.
The…

cipre
- 1
- 1
0
votes
1 answer
Unable to renew Let's Encrypt SSL certificate in Nginx Proxy Manager
I've set up a few sites in Docker, on Linode.
I started by following these instructions:
Connect Your Docker Containers to Domain Names For Easy Access using Portainer on Linode
The steps I followed are:
Created a Linode
Installed NGINX Proxy…

jdege
- 193
- 1
- 11
0
votes
0 answers
502 Bad Gateway when using NginX proxy_pass for subdomain on different LAN server
In a nutshell, I want to host a second domain (sub.domain.com) on a different server, on the same network (192.168.1.240).
I understand I have to make use of the proxy_pass, so I have this configuration on the first server…

Johnny Bravo
- 1
- 2
0
votes
1 answer
Why is request argument not returned in response?
I'm trying to match a location url to this format /v1/images/{path1}/fetch?imageUrl={imageUrl} and I managed to do so with this snippet of code
location ~ ^/v1/images/(?[^/]+)/fetch {
if ($args ~* "imageUrl=.*") {
set $path1…

Esam Olwan
- 105
- 3
0
votes
0 answers
nginx + rocket.chat (docker): 502 error
i'm trying to set up a few open-source services on my domain with each one under their own subdomains. i'm using docker to run the services themselves and nginx as a reverse proxy. be aware that i am a noob when it comes to all of these things
i…

AutumnCheney
- 1
- 1
0
votes
1 answer
Reverse Proxy connecting to the site, but is using the wrong ip address for file requests
I am trying to set up a connection between two servers so when one is accessed the client is proxied to the second one.
http {
upstream serverConn {
server ;
}
server {
listen 80…

Eaz3
- 1