Questions tagged [nginx-reverse-proxy]
283 questions
1
vote
2 answers
How can I forward-proxy https requests with Nginx?
I am running a local web app on my dev machine. And I want to reach my local web app from a test machine (a phone).
I set up Nginx to listen on port 8888. My test machine can reach my dev machine at this port.
Requests that should go the local web…

jlanssie
- 21
- 2
- 7
1
vote
2 answers
Is it possible to clear the cache of a specific url with NGINX?
0
I am using NGINX as a reverse server, but I have a problem when making changes to a page of my website, the changes are not seen until I clean the entire NGINX cache, causing it to clean my entire site and not just in the URL where I am…

jose cervantes
- 11
- 2
1
vote
1 answer
Node on Nginx - proxy_request_buffering off doesn't work with https? Super slow https image uploads
I have a node server running on nginx as a reverse proxy, which is supposed to handle image uploads. Its ssl cert and domain are configured through cloudflare.
Aside from setting the proxy_pass to pass 443 requests to the node on localhost, I…

intern3t-us3r
- 11
- 1
1
vote
0 answers
Nginx proxy to variable URL
I'd like to create a reverse proxy that results in the following:
/proxy/?url=http://takemehere.com/....
reverse proxy to
http://takemehere.com/....
I tried this to no avail:
location ~ /proxy/?url=(.*) {
proxy_pass $1
}
Anyone have any…

tlovett1
- 111
- 2
1
vote
0 answers
Re-writing cookie headers with NGINX not working
I have a working NGINX config as a reverse proxy. I'm trying to modify the upstream server's Cookie headers to add samesite=non and secure. According the to docs here:
proxy_cookie_flags
it should be easy.
I have this in my location block for my…

gwhiz
- 37
- 5
1
vote
0 answers
Cannot reach my external domains when connected to WireGuard VPN?
I have an Unraid server setup with services like WireGuard VPN, Home Assistant, Nginx Proxy Manager.
The setup is as follows:
WireGuard is running as "Remote tunneled access" with DNS server (192.168.1.1) which is my router.
Home Assistant is…

jockebq
- 111
- 1
1
vote
1 answer
NGINX Reverse proxy acme-challenge http to 404
First sorry for my poor english^^
I tried to set up a reverse proxy, and it work fine.
Now i want to obtain a ssl certificate with letsencrypt and i failed^^
On the reverse proxy i creat a file 1234.txt to try connect to it.
I can connect to…

ArnOCP
- 11
- 1
- 4
1
vote
0 answers
LetsEncrypt HTTPS nginx and systemd service for Jupyter Notebook?
I get no errors in neither /var/log/nginx/{access,error}.log nor the journalctl for jupyter and nginx. Putting it all in an HTTP block works, HTTPS the website never loads (I tried curl -Lvvv 'http://DOMAIN_NAME' and the redirect worked but then…

Samuel Marks
- 111
- 1
1
vote
0 answers
Dynamic nginx proxy 502 peer closed connection in SSL handshake
does anyone know why am I getting this problem? Basically the connection closes by itself because of dynamic proxy_pass. This is my nginx config.
error from log :
2022/08/25 19:45:28 [error] 14208#0: *13 peer closed connection in SSL handshake (104:…

Mr none
- 11
- 2
1
vote
0 answers
Nginx basic_auth for entire site (reverse proxy) except for a "hidden" URL which should access all content without basic_auth
TL'DR
set a gibberish URL in nginx site definition that would bypass basic-auth to reverse-proxy
More details:
I have a setup with Grafana running on a VPS and an nginx reverse proxy directing towards it behind basic auth. The setup works fine but…

bosch
- 185
- 6
1
vote
2 answers
nginx reverse proxy returning 404 for some HTTP requests (but not all)
So I have configured a reverse proxy using nginx 1.18.0. I am able to access my desired website through the reverse proxy already, but some requests are failing (eg. for the favicon), because the location /app3/ is not included into the request url.…

Jakub
- 21
- 3
1
vote
1 answer
How to run Nginx outside of a container to serve docker apps?
I have a docker container that just shows random pictures of cats being random. The image for the container resides on the server I use for my personal site, and I would like to add a route in Nginx that allows me to navigate to the app and see the…

HandsomeGorilla
- 111
- 4
1
vote
1 answer
Use NGINX as a reverse proxy for Object storage to serve WEBP conditionally
I'm using a location config like this in Nginx for serving WEBP when the user supports it
map $http_accept $webp_suffix {
default "";
"~*webp" ".webp";
}
server {
#...
location ~* \.(?:jpg|jpeg|png|webp)$…

erfan
- 11
- 2
1
vote
0 answers
Nginx proxy don't work for localhost on port 81 - Always 502 (bad gateway)
I have a simple web application running in a docker container and exposed on port 81.
curl http://127.0.0.1:81 returns the index.html of that web app. So it is running and is reachable.
Also localhost or using the browser it works.
Now I added a…

Alex 75
- 133
- 7
1
vote
1 answer
How can i host a local website to domain using nginx?
I have a server that is running at 127.0.0.1:8323
This port is not reachable from outside.
I want to provide this ip address as https://example.com/website/index.php over the port 80
How can i do this using nginx?
I have tried using proxy_pass in a…

rktfier
- 11
- 2