Questions tagged [nginx]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
7k views

how to fix unknown directive error in nginx?

I'm currently getting the following error with nginx: $ sudo nginx -t nginx: [emerg] unknown directive "sd#" in /etc/nginx/sites-enabled/default.save:27 nginx: configuration file /etc/nginx/nginx....
1 vote
1 answer
7k views

502 Bad Gateway error: How to install php8.1-fpm.sock on ubuntu 18.04

I have nginx running on my system and php8.1 installed. But I am getting Bad Gateway problem. I found that I don’t have php8.1-fpm.sock installed on my system: $ php -ver PHP 8.1.7 (cli) (built: Jun ...
0 votes
1 answer
3k views

How to make nginx connect php-fpm with 127.0.0.1, not server's public ip?

I found error 'WARNING: [pool www] child 3715 said into stderr: "ERROR: Connection disallowed: IP address 'x.x.x.x' has been dropped." ' in php-fpm's log, where 'x.x.x.x' is my server's public ip. ...
0 votes
1 answer
16 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 ...
0 votes
1 answer
30 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 ...
0 votes
1 answer
4k views

Setting up a local development environment with nginx on Linux (ubuntu)

I recently moved to a new computer, and copied over all existing git repositories for webdevelopment projects from my old computer. On that old computer, I had installed apache to serve certain ...
0 votes
1 answer
14k views

bad gateway 502: connect() to unix:/var/run/php/php8.1-fpm.sock failed in error.log

I installed php8.1 on ubuntu 18.04 but getting problems. I am getting 502 Bad Gateway error. The error.log is giving following error: 2022/06/30 17:48:38 [crit] 2224#2224: *1 connect() to unix:/var/...
0 votes
1 answer
8 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 ...
0 votes
1 answer
45 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 ...
2 votes
1 answer
6k views

Installing Kali Linux in Docker and accessing it's GUI over the browser

so I'm pretty new to docker and all that stuff. I would like to install Kali Linux as a Docker container and access it's GUI from the browser. How do I do that? I use Portainer as a GUI for managing ...
0 votes
1 answer
60 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 ...
0 votes
0 answers
11 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; ...
0 votes
1 answer
3k views

nginx rewrite move from risky if statements to try_files. Can anybody help convert? (short)

I am trying to clean up my nginx rewrite rules for my vBulletin forum which has some modifications and additional software within the same site which causes problems. I have things working as they ...
1 vote
0 answers
48 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 ...
1 vote
1 answer
44 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....
0 votes
1 answer
7k views

Nginx reverse proxy doesn't pass CSS or images

I have a Docker container with an Nginx acting as an SSL reverse proxy for authentication. I have an Apache container serving a Laravel app. I always get the html but no css or images. In Chrome I get:...
0 votes
1 answer
5k views

nginx proxy_pass upstream replace with variables

my upstream: upstream upstream_**uba1**_console_f485c00e45256742e2cc641db834b150 { ip_hash; server 192.30.56.172:39443; check interval=2000 rise=1 fall=3 timeout=3000; } upstream ...
0 votes
0 answers
252 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 ...
0 votes
1 answer
65 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 ...
2 votes
4 answers
2k 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 ...
0 votes
1 answer
5k views

ffmpeg exec command not running in nginx rtmp

I am using nginx and rtmp module to stream live hls and mpeg-dash. here is my rtmp command in nginx .conf rtmp { server { listen 1936; application mypull { live on ; meta copy; ...
0 votes
0 answers
17 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 /...
1 vote
1 answer
103 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)....
0 votes
0 answers
52 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 ...
0 votes
1 answer
86 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 ...
0 votes
1 answer
7k views

nginx reverse proxy to Synology DSM, no URL base

I'm running a Synology NAS with DSM 5.x. I finally have a working nginx reverse proxy from another server with the below configuration. What I don't want is all the locations, if possible. The DSM ...
2 votes
1 answer
5k views

How to configure NGINX proxy to do port fowarding to Docker container?

I am trying to implement simple HLS streaming service that is running of Docker containers. In short, each service is dockerized Apache streaming node. Everything works fine. Except there is a problem ...
0 votes
1 answer
197 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 │ │ ├─...
0 votes
1 answer
92 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 ...
7 votes
2 answers
27k views

How to run python script via nginx?

nginx is able to run php scripts to generate content for it to serve. How can you get nginx to execute an arbitrary program, say, a python script, and have it serve up the output?
0 votes
1 answer
5k views

Nginx won't start since Ubuntu upgrade (16.04)

I have recently upgraded my Ubuntu server to the 16.04 release. Since then I can't start the nginx service. Results service nginx restart : Job for nginx.service failed because the control process ...
0 votes
1 answer
268 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 ...
1 vote
0 answers
60 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 ...
0 votes
1 answer
6k views

NGINX as a reversy proxy for web and SSH

I wish to have my NGINX as a reverse proxy for 443 and 22, plus redirecting all traffic from 80 to 443. What is wrong with my configuration? The NGINX server has two NIC's. 10.0.0.0/8 and 11.0.0.0/8. ...
1 vote
0 answers
147 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 ...
1 vote
1 answer
4k views

Nginx Proxy Manager: Can you use single IP address (no hostname) and different ports or paths to forward to different docker container applications?

I do not have any hostnames like something.com to use. I only have the IP address of my server for access. Is there a way to configure Nginx Proxy Manager so when you request http://<ip_address>:...
2 votes
1 answer
2k 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 ...
0 votes
0 answers
51 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.***....
0 votes
0 answers
38 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 ...
1 vote
1 answer
4k views

Plesk (or similar) admin panel for NodeJS hosting [closed]

I am wondering if there any Plesk-like control panels to offer NodeJS hosting. I am trying to find out if it is possible to replace Apache and PHP with NodeJS and NGINX for vhosts, while MySQL ...
0 votes
1 answer
918 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 ...
1 vote
1 answer
807 views

nginx rate limit doesn't work as expected

I'm trying to rate limit the nginx connections, however it doesn't seem to work as expected. I tried to test it using 2 and 10 requests per second. First, 2 requests per second limit_req_zone $...
0 votes
0 answers
46 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 ...
4 votes
2 answers
2k views

What's the reasoning for nginx defaulting to error 503 when a rate limit applies instead of error 429?

The documentation says: nginx.ingress.kubernetes.io/limit-connections: number of concurrent connections allowed from a single IP address. A 503 error is returned when exceeding this limit. nginx....
0 votes
0 answers
156 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 ...
4 votes
2 answers
13k views

nginx-rtmp pushing from one application to another

I'm trying to push a RTMP stream with the nginx-rtmp-module (set up after this manual) from one of its applications into another one. A minimal example of my config (nginx.conf) looks as following. ...
0 votes
0 answers
42 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 ...
2 votes
1 answer
321 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: ...
0 votes
0 answers
77 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# ...
0 votes
0 answers
458 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 ...

1
2 3 4 5
21