Questions tagged [nginx-reverse-proxy]
The nginx-reverse-proxy tag has no usage guidance.
244
questions
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 ...
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 ...
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 "...
-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;
...
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 ...
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 ...
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;
...
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 -> ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
-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/...
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 (...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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" :...
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 ...
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 ...
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 ...
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 ...
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 ...
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 {
...
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 ...
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,...
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>...
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
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 ...
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/...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
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: [...
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 ...
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 ...
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....
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 ...