Questions tagged [nginx-reverse-proxy]

283 questions
0
votes
1 answer

Make nginx look for credentials in "Proxy-Authorization" header, so it works with apt

I have an nginx in front of an apt-cacher-ng. The nginx's job is to terminate HTTPS and take care of authentication. The issue is, that nginx will look in the Authorization header for credentials, but when I configure apt to use a proxy, it will…
0
votes
1 answer

Nextcloud with Docker Compose behind reverse proxy (nginx) with proxy_pass (leaking images)

I have Nextcloud running with the following docker-compose.yml file and I use Plesk with nginx as a reverse proxy. My problem is that the images are accessible without a login. I can open a image with the following url…
BenRoe
  • 101
  • 2
0
votes
1 answer

Nginx redirect all the incomming request base on the location block

I am using Nginx as a reverse proxy. I assume I have a domain like test.com and a location block with a path like /test. the location would proxy_pass to another website like http://test2.com. when I type the URL on the browser, it redirects the…
0
votes
0 answers

Websockets failing without error message

I have a NginX server running two nodeJs applications, Let's call them A and B. Both applications are working correctly for websockets on my local machine, and https calls are working on the server for both applications, but websockets are only…
Michael
  • 105
  • 3
0
votes
0 answers

Nginx stopped: host not found in upstream, IIS local site

I created a new site in IIS (local.account-custom-catalogs.abc.com) and I am able to ping the site as well, however, when I try to add the corresponding entry in the upstreams: upstream web_blue_custom-catalog { zone abc-account-manage 64k; …
0
votes
0 answers

NGINX upstream timed out while SSL handshaking to upstream

I have a problem I'm struggling understand because everything was working fine a week before (and no change to configuration has been done, so only OS patching or whatsoever may have happened) So the setup is the following : I have 2 sites A & B: A…
EHRETic
  • 73
  • 1
  • 2
  • 5
0
votes
1 answer

Is there a way to include the request port number in NGINX access.log?

Can I show the port # in the access/error logs with NGINX ? I can run nginx-debug if that helps. Debian 11, free NGINX 1.22 downloaded release (not built from source)
gwhiz
  • 37
  • 5
0
votes
0 answers

Nginx Custom Header as HTTP request response

I'm facing a challenge and need some help, please.emphasized text It's quite simple, I need to set a custom header as a response from an http request to an internal app I have running on the same instance. I have two applications running on docker…
0
votes
0 answers

Sitting up Nginx Reverse Proxy

I have nginx installed on ubuntu 20.4, and I need to set it up as reverse proxy to serve a webserver. my webserver ip is 192.168.1.13 on port 8089 and I need it to be accessed from the public IP on a url for example webserver.mydomain.com. my…
M Fadi
  • 1
  • 1
0
votes
0 answers

What to do if your websocket based app inside a docker cannot do WSS, will reverse proxy with NGINX work?

I'm on a journey to figure out if and how to use NGINX as a reverse proxy for an app server in a docker that needs WS, but we need the clients to use a secure WSS connection. At first I thought of just using a WSS to WS NGINX reverse proxy. We…
gwhiz
  • 37
  • 5
0
votes
1 answer

nginxproxymanager fail2ban for 401

I've setup nginxproxymanager and would like to use fail2ban for security. I'm very new to fail2ban need advise from y'all. My access log when login failed as below [12/Sep/2022:09:47:54 +0000] - 401 401 - POST http nginx.example.com "/api/tokens"…
niaosuan
  • 1
  • 1
0
votes
0 answers

Assets returning 504 when port is not specified in the browser using an nginx reverse proxy

If I visit hxxp://grafana.home.lan, I received a 110 connection timed out error on some assets which do not allow the application to work correctly, in this case, Grafana. Though, I will add this is not just happening with the Grafana service, it is…
0
votes
1 answer

Nginx + Socket.io websocket closed before establishing connection issue

Hi i am running an express server with a socket.io server attached to it const { Server } = require("socket.io"); var server = http.createServer(app); /** * Adding Socket io implementation */ const io = new Server(server, { cors: { origin:…
0
votes
1 answer

nginx resolver module - negative cache

I have a query about nginx resolver that I cannot get a clear answer for from the docs. By default, nginx caches answers using the TTL value of a response. An optional valid parameter allows overriding it: resolver 127.0.0.1 [::1]:5353…
rtmie
  • 151
  • 3
0
votes
0 answers

nginx with auth_module, how to show custom 403 page

We have an comples nginx reverse proxy setup with multiple upstreams. Every config includes 'auth.conf', sending every request to an authentication backend. auth_request /auth; error_page 401 = @error401; error_page 403 = @error403; location /auth…
opHASnoNAME
  • 645
  • 2
  • 7
  • 18