As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [nginx-reverse-proxy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

access.log of Nginx filling up space (Ubuntu 22 Server)

Recently I have deployed my website using node.js server and using Nginx as reverse proxy, also nginx handles SSL, and forwards the https to http server of node.js running at specific port. I am using ...
Albert Einstein's user avatar
0 votes
1 answer
13 views

NGINX proxy fails to disconnect sessions on target Apache server

I have a PHP script running on an Apache server which is responsible for disconnecting all user sessions. For that, it makes a loop that identifies itself as the session that should be disconnected ...
Tom's user avatar
  • 269
0 votes
0 answers
12 views

NGINX 502 Error on specific page paths

I've utilized Nginx 404 Not Found when entering a specific url path to help be fix a 404 error that has been occuring when I copy any specific page path of my site into the search bar ( ie "...
bug1827's user avatar
-1 votes
1 answer
38 views

I try to use nginx as a reverse proxy with validating client certifikate and I want to check OU in client certificate. Always return 404

Here is my configuration. server { listen 443 ssl default_server; listen [::]:443 ssl default_server; server_name _; ssl_certificate /etc/ssl/certs/nginx-self.crt; ...
sqra's user avatar
  • 1
0 votes
1 answer
45 views

Nginx Reverse Proxy do not load JS and CSS from other server

I have two version of a WebApp, running on two different servers (prod and dev). Prod version is available on exemple.com, and dev version on exemple.com/dev. However, when I set the proxy to load dev ...
Guix's user avatar
  • 3
0 votes
1 answer
25 views

Nginx - Black list cookies

Is there a way to black list cookies purely through Nginx? I tried this: https://stackoverflow.com/questions/67548886/remove-specific-cookie-in-nginx-reverse-proxy But it doesn't seem to cover cases ...
user17714968's user avatar
0 votes
0 answers
24 views

how to prevent redirect cloudflare origin domain when we do reverse proxy on nginx

im having problem with my reverse proxy config on nginx, how can i stop domain that using cloudflare to not redirecting to their original domain when we reversing proxy ? listen 443 ssl; ...
Siauz's user avatar
  • 1
0 votes
1 answer
29 views

How to reverse proxy host paths to absolute urls using ngix?

I have a series of local services all running on different ports. I'd like to expose these services via a nginx reverse proxy. The routing patterns should follow the pattern: 0.0.0.0/app -> ...
Vaune_'s user avatar
  • 1
0 votes
1 answer
97 views

Nginx Reverse Proxy : using self signed SSL certificate to backend server

I need to accomplish this: User (https using wildcard CA cert 1 year) to --> Nginx reverse proxy (https using self signed cert 10 years) to --> backend server I'm stuck on configuring the ...
Abang's user avatar
  • 1
0 votes
0 answers
31 views

nginx as reverse proxy for different PHP backends

I maintain two Debian Linux servers, A and B. A is rather old and runs a old PHP installation (5.4), while B runs a newer (7.2). Both run Apache as a web server. Server A uses PHP as a module, while ...
Vasilis Lourdas's user avatar
0 votes
0 answers
20 views

Hard coded nginx memory limit

Is there a hard-coded memory limit when using Nginx as a reverse proxy? I don't find any relevant information about this, so I assume there is no limit in nginx itself.
D.Bence's user avatar
0 votes
0 answers
22 views

Nginx proxy pass issue

I have two site the one is main.domain.com, two is two.domain2.com, domain2 is wordpress blog server in diffrent server that I want use main.domain.com/blog nginx proxy pass to and click the blog page ...
CHIEN WEICHUAN's user avatar
0 votes
0 answers
33 views

Nginx reverse proxy to IIS backend not working

New to nginx. I have a VM running Nginx 1.20.1 as a reverse proxy with IP 10.0.0.4. I also have a VM with IIS serving app A with IP 10.0.0.19. The subdomain xyz.test.com.my is pointing to Nginx. From ...
Abang's user avatar
  • 1
0 votes
1 answer
64 views

Nginx Reverse proxy acme challenge 404 error

I have a vhost which seems to work fine except when trying to generate SSL keep getting errors. Can some one help me to spot what is going wrong please? Thanks example.com: Domain could not be ...
Tapash's user avatar
  • 153
0 votes
0 answers
59 views

Set up nginx to proxy web and ssh by domain?

I'm not a pro with nginx. Please bear with me. I couldn't find a working how-to anywhere in the net. Only old stuff with nginx versions not able to pre-read anything. So this is my last resort, kind ...
awado's user avatar
  • 133
0 votes
1 answer
92 views

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 ...
snowlash's user avatar
-1 votes
1 answer
41 views

My location restriction to admin panel is not working in Nginx

My website is at https://www.example.com and I have a CMS Panel at https://www.example.com/administrator -> 301 -> https://www.example.com/administrator/ -> 302 https://www.example.com/...
Blason R's user avatar
1 vote
2 answers
63 views

add_header always in nginx reverse proxy fails in some situation

In following config, when upstream server returns other than HTTP 200 OK response, request to hostnameb.example.org is missing X-custom-server-info header. hostnamea.example.org response is correct (...
tomas's user avatar
  • 121
0 votes
0 answers
99 views

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 ...
Subito's user avatar
  • 388
0 votes
1 answer
56 views

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 ...
strange's user avatar
0 votes
0 answers
38 views

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....
Wim ten Brink's user avatar
1 vote
1 answer
173 views

nginx proxy_pass proxy_set_header of proxy host

Using NGINX as a reverse proxy, I want to tag which load balancer/proxy the request can in on, and pass that to the end app servers... For example, we have 2 ingress connections, using round-robin DNS ...
MrPHP's user avatar
  • 153
0 votes
1 answer
99 views

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 ...
adamski's user avatar
0 votes
0 answers
28 views

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 ...
somedude's user avatar
0 votes
0 answers
55 views

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 ...
Synchro's user avatar
  • 3,128
0 votes
1 answer
24 views

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" :...
Alan's user avatar
  • 1
1 vote
1 answer
314 views

How to use nginx as ssl reverse proxy for postgresql TCP connection?

What I want to achieve is this [Postgresql Database] -- transparent TCP -- [clients on the cloud] [Postgresql Database] -- transparent TCP -- [nginx on jump server] --SSL TCP-- [clients outside the ...
George Y's user avatar
  • 434
0 votes
1 answer
168 views

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 ...
user1505698's user avatar
0 votes
1 answer
35 views

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 ...
cipre's user avatar
  • 1
0 votes
1 answer
2k views

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 ...
jdege's user avatar
  • 193
0 votes
0 answers
156 views

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 ...
Johnny Bravo's user avatar
0 votes
1 answer
27 views

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/(?<path1>[^/]+)/fetch { ...
Esam Olwan's user avatar
0 votes
0 answers
128 views

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 ...
AutumnCheney's user avatar
0 votes
0 answers
36 views

How to move a web-server off of a Reverse Proxy Server onto a new computer?

We have NginX running on a Linux computer acting as both a Reverse Proxy Server (RPS) and a web server. It is functioning perfectly forwarding traffic for 4 websites on different computers (www.a.com,...
RDK's user avatar
  • 23
0 votes
1 answer
144 views

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 <my.server.ip>...
Eaz3's user avatar
  • 1
0 votes
1 answer
24 views

can nginx block incoming headers as reverse proxy / uwsgi client

I am using nginx and would like to block certain incoming headers, such, that uwsgi never receives these headers a server / service that I proxy to will not receive them How can I achieve this
gelonida's user avatar
  • 227
0 votes
0 answers
110 views

can nginx distinguish http headers with underscors from headers with a dash

I have one server where I have one HTTP header that contains an underscore (example X_MYHEADER) all other headers do not use underscores. Therefore I enabled the option underscores_in_headers on; Now ...
gelonida's user avatar
  • 227
0 votes
0 answers
34 views

Write override-config.yml to reverse proxy domain path to cloud service with nginx-proxy-automation?

I am using https://github.com/evertramos/nginx-proxy-automation/ and it has as a component https://github.com/nginx-proxy/docker-gen. I would like to proxy a location on my host https://someurl.com/...
Bob R's user avatar
  • 111
0 votes
0 answers
59 views

Revese proxy fails to forward requests to port

I have a server where I want setup a reverse proxy with nginx to handle HTTPS traffic to an app in a docker container. Below is the config file in /etc/nginx/sites-enabled. It is based on this guide ...
shs's user avatar
  • 101
0 votes
1 answer
600 views

NextCloud FPM Docker Image behind an NGinX Docker Container as Proxy Reverse

The Issue - I'm getting a 404 - File not Found when trying to access the App (Including First Time) When trying to access the App on a browser via nextcloud.example.com I'm getting this Error from the ...
Alejandro Vidaurre's user avatar
0 votes
1 answer
172 views

Disabling Nginx's proxy buffering doesn't synchronize the response

My understand on disabled Nginx's proxy buffering is that the app server will wait the client to respond instead of Nginx, so I should see many open connections, but it's not the case in my testing. ...
Belive's user avatar
  • 103
0 votes
0 answers
352 views

Nginx reverse proxy requires internal port to work when redirecting traffic to Docker host machine

I've been using a Linux host machine with several docker containers running with one of those as Nginx Proxy Manager (from now on: NPM), which is just Nginx with a friendly UI. NPM exposes ports 80 ...
DomingoSL's user avatar
  • 345
1 vote
1 answer
132 views

Nginx UDP proxy shared connection is busy

We are proxying UDP packets for a game server through a Nginx reverse proxy. Clients timeout very often because the Nginx can't handle the requests. Initially it works flawlessly, but when more ...
hachan29's user avatar
0 votes
1 answer
332 views

how do i network VMs when only one IP available ? (proxmox)

sorry if the question has already been asked but cannot find an answer for my usecase. The problem: we have a server in a datacenter colocation, this server is connected to the DC network and has ...
ketchupOnWaffles's user avatar
0 votes
0 answers
127 views

nginx reverse poxy to a service on another wireguard peer

Before asking this question, I already self-searched but no solutions. I have lots of services on my home server, and I bind it with a VPS by Wireguard (confirmed they can find each other). I hope to ...
Samuel Three's user avatar
0 votes
2 answers
142 views

nginx mirror traffic configuration issues

I am trying to mirror the SNMP trap across multiple servers. It uses TCP/IP traffic. I am using nginx to complete this but i am getting the following error vsrsadmin@TRAP02:~$ sudo nginx -t nginx: [...
Rohan Raj's user avatar
0 votes
1 answer
70 views

[Wordpress][CACHE] Fastcgi_cache or proxy_cache?

I'm preparing a server to host a classic WordPress site (lots of dynamic content). I have an apache server associated with a Nginx reverse proxy ( with the proxy_pass configuration ). I have several ...
Vold DRag's user avatar
0 votes
0 answers
111 views

Trouble getting NGINX to serve static content for specific directory from CDN via proxy

I would like to serve static files from my remote CDN URL: https://my.cdn.com/project/files/2023/01/some_image.png https://my.cdn.com/project/files/2021/04/some_file.txt These need to be reached via ...
Ren's user avatar
  • 11
0 votes
0 answers
159 views

nginx redirect to the proxy-host instead the public host

Authelia works, first of all I open in browser https://ads.target.org, then redirected to https://auth.target.org/?rd=https%3A%2F%2Fads.target.org%2F After authentication, I redirected to https://192....
Vendi Spancer's user avatar
1 vote
0 answers
351 views

Using Nginx upstream hosts with proxy_pass

Below is the bare-bones stripped down Nginx config that demonstrates the problem I'm having directly. The "real-world" setup has multiple upstreams and multiple conditional checks that are ...
Rino Bino's user avatar
  • 377

1
2 3 4 5