Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [nginx]

nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

NGINX multiple authentication methods (one or the other) AND an IP check seems impossible

location / { proxy_pass $forward_auth_target; allow xxxxx/24; deny all; satisfy any; # This gets satisfied by the IP check, and auth is completely bypassed ...
Gergo Vari's user avatar
0 votes
0 answers
31 views

Is there a way to prevent direct copy of URL with X-Accel?

I am currently serving private images using X-Accel. The images folder is behind the root, and I have the following block inside the nginx config: location /private_files { internal; root /var/...
Stackerito's user avatar
0 votes
1 answer
11 views

X-Accel return 404 but path and config seem to be correct

I have the following block in my nginx config: location /files { internal; root /var/www/website/storage/uploads; } In my Laravel app I am trying to redirect get-file URI to the private ...
Stackerito's user avatar
0 votes
0 answers
26 views

respond with a custom file from query string or default if file doesn't exist

I have an nginx server running a react single page application, simple stuff: server{ server_name testing001.example.com; location / { root /var/www/testing001; try_files $uri /...
André Alçada Padez's user avatar
0 votes
0 answers
40 views

Can't stream two rtmp streams simultaneously on nginx server

I'm having a problem streaming two streams at the same time using nginx/1.22.1 and ffmpeg on raspberrypi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux nginx....
Dinamo's user avatar
  • 1
4 votes
0 answers
89 views

How to build Pagespeed PSOL binaries from source for ARM64 (aarch64) Raspberry Pi 4 on Ubuntu Server?

I am running Ubuntu Server 22.04 (aarch64) on my Raspberry Pi 4. It is a web server. I am trying to build the Nginx Pagespeed Module for the Raspberry Pi 4 with modern PSOL binaries. I have created a ...
DanRan's user avatar
  • 130
0 votes
0 answers
100 views

Connection reset when streaming rtmp from ffmpeg to nginx

I'm trying to stream video file to nginx rtmp server with ffmpeg, I've posted the exact commands/configuration i've used, but i get Connection reset by peer/Broken pipe errors from ffmpeg I'm running ...
Dinamo's user avatar
  • 1
1 vote
1 answer
159 views

What will nginx reverse-proxy do with 'proxy_redirect' to https when a backend has invalid https certificate?

I have a strange situation with my nginx acting as reverse proxy. When my backend website is responding to a user (user's browser) request through nginx reverse-proxy, the user will obtain http ...
Mi1anovic's user avatar
  • 146
0 votes
0 answers
45 views

Blocking [IPaddress:8080] on nginx

I have an app working on port 8080 perfectly with the domain desh.onecloudhelper.com and now when I hit the Public IP address of the Server, I can still view the same app running using the server's ...
Desh Deepak Dhobi's user avatar
0 votes
1 answer
26 views

Ignore a location segment in Ngnix to serve static files

My application generates static URLs such as: /nhub/public/static/A8Ec-8B33/css/styles.css /nhub/public/static/A8Ec-8B33/favicon.ico After an update to the app, it generates same URLs as: /nhub/...
fishfin's user avatar
  • 141
0 votes
1 answer
28 views

Connect to a device on another subnet using 3rd device as a proxy

I have a device with a HTTPS web portal that only has an ethernet port. However I am unable to get an ethernet cable to the where the device lives, it is however able to receive WiFi. I was planing on ...
Sam Stephenson's user avatar
0 votes
1 answer
31 views

How can an inbound connection route to 0.0.0.0 on my server so that the original url in the logs show 0.0.0.0 and not the server IP?

Saw a connection comming in which gave a 404, but instead of showing the original URL as www.serveraddress.com or https://serverip it showed https://0.0.0.0. How is this possible? How can I prevent ...
doer123456789's user avatar
0 votes
1 answer
14 views

I cannot change my Nginx configuration no matter what I try

I'm trying to create a subdomain for hosting files and no matter what I try, autoindex doesn't do anything. I can successfully redirect "public.example.com" to "example.com", but ...
Reverent Lapwing's user avatar
0 votes
1 answer
100 views

dnsmasq captive portal with ipset/nft "allowed list"

I'm playing with dnsmasq to create some kind of captive portal. Idea is: dnsmasq by default rewrite all DNS requests to local ip (address=/#/123.123.123.123), and nginx is already setup here to ...
Bubonic Pestilence's user avatar
0 votes
1 answer
86 views

Cannot reach domain via HTTPS on the same server behind a PfSense Firewall

I am hosting a platform on a server which has multiple domain names, let's say example.com and anotherexample.com. I am running a Spring Boot backend on that server, which uses the domain example.com ...
Jason's user avatar
  • 323
0 votes
0 answers
14 views

Docker certbot trouble after relocating data-root

Because of my Docker images/containers filling up my root partition, I've been trying to move the data-root directory of my Docker installation to a different location (current: /usr/lib/docker; ...
MPA's user avatar
  • 103
1 vote
0 answers
59 views

Running forward proxy over openvpn

Where I live, there is quite a bit of censorship on the internet, and so I hope to be able to run a proxy on my home server which passes all my internet traffic through an openvpn tunnel, such that I ...
sawntoe's user avatar
  • 11
1 vote
1 answer
100 views

Nginx matches wrong server_name

Under the same server there's a few configuration blocks that look like so server { server_name app.domain1.com; listen [::]:443 ssl http2; index index.html index.htm index.nginx-debian....
mbouclas's user avatar
  • 111
0 votes
0 answers
551 views

Partial transfer when using Nginx

I have a problem with loading in my website through a Nginx proxy. The website is hosted on a Windows Server 2016 Datacenter server in IIS. When the loading problem happens I have the issue that for ...
Dylan D's user avatar
0 votes
1 answer
117 views

Use NGINX to serve as both webhost + direct subdomain request to dockerserver:port

First, I struggled hard with the title. I've been trying back and forth, googling like mad and the resources I find are most likely way to complicated for me. But I find it so unbelievable that it's ...
Plankt0n's user avatar
2 votes
4 answers
3k views

Nginx without public certificate

Is there any way that we can configure an Nginx without a public certificate? The objective here is, I want to publish an API on public internet, but all the API client (whitelisted clients) should ...
Rick Brian's user avatar
0 votes
0 answers
20 views

Why doesn't this file allow me to access archie via the internet?

I'm trying to set up nginx on an RPi to act as a web server, a nextcloud server, and a reverse proxy server. Currently I'm 0 for 3 but this question is about the reverse proxy server. Here is my /...
Jon Bray's user avatar
1 vote
1 answer
137 views

Trying to port forward for music server

I am from India and I am trying to host my music server (Navidrome) behind a Nginx proxy server from my Raspberry Pi. The music server works absolutely fine on LAN (have been using it for a while now)....
Aryan Kadole's user avatar
1 vote
0 answers
68 views

New to self-hosting and struggling with Monica CRM Docker setup (503 Error)

As someone new to self-hosting, I embarked on what I thought would be a relatively simple project: setting up Monica CRM using Docker. However, I've encountered an unexpected challenge and am seeking ...
Xevi's user avatar
  • 11
0 votes
1 answer
110 views

Often getting "This site can't be reached - refused to connect" error - WordPress and Nextcloud behind SWAG reverse proxy

I've recently added a WordPress instance to my Unraid server, but now I'm often running into the error "This site can't be reached - refused to connect" when attempting to access both my ...
Ripple_049's user avatar
0 votes
1 answer
122 views

php-fpm and nginx security isolation not working....or may be my understanding is not correct

I followed the following tutorial to do isolation of my two websites. https://www.vultr.com/docs/use-php-fpm-pools-to-secure-multiple-web-sites/ Here is what I did: Created two users and then ...
Frank Martin's user avatar
0 votes
1 answer
327 views

Home Assistant OS and nginx reverse proxy

I have installed official KVM installation of Home Assistant on a linux host machine. The host machine is 192.168.0.110 and the KVM Home Assistant on that host machine is 192.168.0.73:8123. I wanna a ...
Bazim's user avatar
  • 1
1 vote
0 answers
97 views

How to get the subdomain pointing to pm2 app with Nginx on Ubuntu?

I have a hosted server that should serve both the domain example.de and app.example.de. On app.example.de I would like to have my meteor/pm2 application being served. I have created two configuration ...
AntonSack's user avatar
  • 111
0 votes
1 answer
235 views

How to serve html and php from multiple folders under the same host in nginx?

I want to serve two folders with nginx: a folder with generated html files, and a folder with static html and php scripts, take this folder structure as an example: ├─/var/www │ ├─generated │ │ ├─...
Gergő Gutyina's user avatar
1 vote
0 answers
176 views

SSL certificates not being generated with Certbot for Nginx when using Docker

If I understand this correctly what you are required to do is to have a web server being hosted at a specific domain and then execute the certbot command with specific arguments. I have created a ...
Zoumath's user avatar
  • 11
2 votes
1 answer
3k views

How to fix "a client request body is buffered to a temporary file"?

Ia have a container running in the google cloud with a Mysql Db in the same cloud. It receives json data via an API. when the data is processed I write data in the db. About twice in 5 min I get the ...
Calamity Jane's user avatar
0 votes
0 answers
76 views

Server and host in error are different nginx servers, 403 Forbidden

I have two nginx configurations. One is my CDN: server { server_name cdn.***.xyz; root /var/www/html; listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/cdn.***....
mallusr greatv2's user avatar
0 votes
0 answers
42 views

nginx reverse proxy configuration for a subdomain is reset to default randomly, on a server managed by Plesk

We have a VPS managed by Plesk. We have apache2 and Nginx installed on it. We use Nginx as a reverse proxy server for our spring-boot applications hosted on other VPS. For that, we create subdomains ...
aks's user avatar
  • 1
0 votes
1 answer
1k views

How to disable SSL checking on Nginx?

I have some QA server for my website. A year ago I've tried to make SSL connection to my production website so I've implemented it on the QA by nginx too. Now it's expired and I don't want to renew it ...
lingar's user avatar
  • 121
0 votes
0 answers
78 views

Configure nginx running locally to server the port running docker container locally

Hi this may be a noob question. I am trying to replicate a 502 bad gateway error when using nginx as a web server. I have locally running VM of Ubuntu 20.04.6 LTS on which I have freshly installed ...
Curious Developer's user avatar
0 votes
0 answers
187 views

Caching content from my homelab on a proxy server?

My homelab server has several services on it (personal website, Nextcloud, Jellyfin, etc..) that I access via a VPS, which uses Nginx as a reverse proxy, and tunnels traffic to/from my server at home ...
Lukas's user avatar
  • 1
0 votes
0 answers
47 views

Flask application running on nginx . File read from folder ok but 500 error while file save

Hello I am running nginx server on ubuntu system . file read from web app is OK . file save or file write to local folder system is getting error with 500 internal server error . root 12145 0.0 ...
Akash Tripathi's user avatar
2 votes
1 answer
453 views

Using NGINX to access other systems with proxy_pass

I'm trying to get my NGINX reverse proxy to connect to 2 other systems using the the proxy_pass directive and I'm having an issue with the configuration. Here is the server block of my nginx.conf: ...
Barrie's user avatar
  • 23
0 votes
0 answers
119 views

NGINX responds to pings, rejects requests, times out on DNS - potential hairpining

Running Ubuntu Server v23 with NGINX and a "static" IP address (via noip). From my Server I ping the public IP and see this: Via Web Server: IP 192.168.1.43 root@websrv:/etc/nginx/conf.d# ...
NOCARRIER's user avatar
  • 101
0 votes
0 answers
522 views

Nginx Proxy Manager forward to vaultwarden in https throw an error 502

On my QNAP TS-673A (192.168.0.228), i have installed the two followings docker images : Vaultwarden (192.168.0.227) Nginx Proxy Manager (NPM) with his intertace on NAT On my box like i have the ...
user3533235's user avatar
1 vote
0 answers
1k views

Nginx Proxy Manager with domain with port to be forwarded

On my QNAP TS-673A, i have installed the following docker image jlesage/nginx-proxy-manager , in the NPM web interface under SSL Certificates, i have added my subdomain : cloud.domain.com. On my ...
user3533235's user avatar
0 votes
0 answers
96 views

Configure a Raspbery Pi Nextcloud local server to run https with Docker containers

I'm trying to set up a Nextcloud server on my local nextwork using a Raspberry Pi. To do so, I used 3 docker images: nextcloud, posgresql and nginx. But even if I want to use this cloud only within my ...
Daniel Lavallée's user avatar
0 votes
0 answers
68 views

NGINX fails to connect to Nextcloud instance

I have a server running proxmox with 3 VMs: NGINX, Bitwarden and Nextcloud. Bitwarden works fine which proves that NGINX is working ok, however when NGINX tries to connect to Nextcloud it will result ...
verumIgnis's user avatar
0 votes
0 answers
217 views

In docker-compose, Error adding SSL Certificate to reverse proxy to consume websocket?

Deploying docker in windows 11 and working with docker-composer, I am trying to enable the ssl certificate for my setup where I want to enable nginx as a reverse proxy to allow secure websockets wss://...
Francisco Nuñez IA Lover's user avatar
0 votes
0 answers
97 views

nginx rewrite overlapped with Swagger body

Here's my nginx.conf: server { charset utf-8; client_max_body_size 512M; listen 80; listen 443 ssl http2 default_server; server_name app; set $base_root /app; root $...
Toqa Abbas's user avatar
0 votes
0 answers
1k views

nginx server can't read pem key provided by Ionos

-----BEGIN CERTIFICATE----- contents -----END CERTIFICATE----- -----BEGIN RSA PRIVATE KEY----- contents -----END RSA PRIVATE KEY----- but I still get the following error in the logs ...
ageis23's user avatar
  • 671
0 votes
0 answers
199 views

'code-server' showing blank page after login

I am attempting to set up code-server on Ubuntu 22.04. I have installed code-server and can successfully log in, however as soon as I log in all I can see is a blank screen. Viewing the nginx error ...
David Gard's user avatar
  • 1,505
0 votes
0 answers
49 views

Client fails TLS handshake

A client is trying to connect to my website using a client certificate. However, they get a 400 error. They gave me their public certificates excluding root CA in a .crt file. This is the access log: ...
A. Abassi's user avatar
0 votes
0 answers
64 views

Add new folder to yii2 with nginx

I got yii2 advanced template , but need to change the structure as below : app --backend --common --v1 --config --main.php --controller --SiteController.php --web --index.php ...
Toqa Abbas's user avatar
0 votes
2 answers
397 views

Nginx-proxy seems to ignore server context

Premise In the past days I setup a home server running Mastodon with Docker. I already have a Nextcloud instance running on a Raspberry so now I'm trying to make both available thru dedicated ...
Gianluca's user avatar

1
2 3 4 5
21