Skip to main content

Questions tagged [nginx]

nginx is an open-source Web server and a reverse proxy for HTTP, SMTP, POP3 and IMAP protocols, aimed at high performance and low memory usage.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Subdomains only work sometimes when accessing homeserver in local network

i'm in the process of setting up a little homeserver for my family on a 1L pc. Its running debian and a couple of docker containers like immich, jellyfin and paperless-ngx. The server should be ...
user avatar
0 votes
2 answers
23 views

Webserver to forward and decrypts HTTPS to HTTP

Is it possible with Apache or Nginx (or others) to have the webserver configured for HTTPS/443 and translationg every request to simple HTTP and forwarding it to another process (just understanding ...
chris01's user avatar
  • 615
0 votes
0 answers
15 views

Nginx Proxy, Cloudflare Full SSL, and Load Balancer Redirection Loop?

I'm facing an issue with a redirection loop when using Nginx as a reverse proxy in front of my load balancer. My setup is as follows: Domain: aarohisilks.com DNS: Cloudflare, A record pointing to my ...
havishka's user avatar
-2 votes
0 answers
27 views

Converting IP address to domain names using nginx in linux

I am trying to convert a test IP to a domain name using nginx on Linux I have created the file in /etc/nginx/sites-available and i have done using (ls -n..) the symbolic link and the file created has ...
Đɍæʍøɲđ's user avatar
0 votes
0 answers
13 views

Reverse SSH Tunnel from ESXI Client to a vServer to access OpenSlides

Hello there sorry for my bad english as it is not my native language, I want to access a Docker application called OpenSlides from a ESXI Server that is currently blocked by the Firewall from my ...
Huu Duong Nguyen's user avatar
1 vote
1 answer
35 views

Migrating from Debian 11 to 12, the sudo apt dist-upgrade finishes on a message: 'unknown directive "set_by_lua"' from nginx

I am upgrading a VM at work, from Debian 11 to 12. I succeed up to the sudo apt-get dist-upgrade, where it fails on: Setting up nginx (1.22.1-9) ... Job for nginx.service failed because the control ...
Marc Le Bihan's user avatar
0 votes
1 answer
45 views

Bot crawling getting 301/redirects instead of 404 so it's hiding from fail2ban. How is it getting 301 intead of 404?

I have fail2ban setup and it's working great for most scanning. It triggers off any 4xx in the nginx error log. However, note the following bot scan. Somehow THIS bot is triggering my server to return ...
Chris's user avatar
  • 103
0 votes
0 answers
45 views

Should I ban 404 hacking requests?

My PHP website runs on Debian 12 and NGinx. All non resource requests are sent to php-fpm: location / { try_files $uri /index.php$is_args$args; } location ~ \.php { try_files $uri =...
thierryler's user avatar
0 votes
0 answers
18 views

Certbot redirection to HTTPS works only for one host

After installing SSL certificates using Certbot and nginx (Ubuntu 22.10) my config file is this: server { server_name www.example.com example.com; index index.php index.html index.htm ...
Mark's user avatar
  • 733
0 votes
0 answers
11 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 written a ...
DanRan's user avatar
  • 113
0 votes
1 answer
33 views

NGINX HTTPS not redirecting properly

I followed Cerbot's instructions to get a HTTPS certificate for NGINX in my Debian server for a domain, but the HTTPS is not redirecting properly. I got the following in etc/nginx/conf.d/app.conf from ...
Kevin's user avatar
  • 139
0 votes
0 answers
19 views

Selfhosted gitlab not working with non-bundled nginx

I have gitlab-ce running on a centos-stream-9 vm, and nginx running on a separate ubuntu vm, working as a reverse proxy to the gitlab instance. But for some reason it is not working. nginx is ...
Raymond Gitonga's user avatar
0 votes
0 answers
28 views

How to set up 'git push remote master' to automatically update files on production web server?

I have my website running on a remote server with gunicorn/nginx. The nginx runs from /var/www directory and its owned by root:www-data drwxrwxr-x 5 root www-data 4096 Apr 8 17:32 www I also ...
user1933205's user avatar
0 votes
0 answers
133 views

nginx can't follow symlinks even after "disable_symlinks off;" setting

I have django/gunicorn/nginx based site. The static files when changed and deployed to the server get uploaded to /home/username/src/static folder. The website itself is provided from /home/username/...
user1933205's user avatar
0 votes
1 answer
168 views

How to logrotate official nginx docker image running by podman

I started official nginx image in podman under root with command: sudo podman run --name nginx \ ... \ -v /var/log/nginx:/var/log/nginx \ docker.io/library/nginx:latest Logging working ok, but ...
Almaz's user avatar
  • 153
0 votes
1 answer
111 views

nginx serves both port 80 and 443 but always returns HTTP 404 on port 80

I'm running nginx v1.22.1 on my Raspberry Pi 4 (based on Debian Bookworm). nginx returns HTTP 404 Not Found for all requests via HTTP/port 80: However, everything works nicely via HTTPS/port 443. ...
mu88's user avatar
  • 113
0 votes
1 answer
69 views

Fine-tune selinux constraints on nginx without semanage?

I'm setting up nginx on a Rocky 8.9 server, and ran into SELinux problems trying to listen on ports other than 80 and 443. The recommended solutions across the internet all seem to recommend semanage,...
Wildcard's user avatar
  • 36.7k
3 votes
1 answer
231 views

nginx reload - effectively memory leak

When running nginx -s reload, nginx is meant to soft reload (gradually close existing connections on the Old process, and service new requests on the New process). It does that, except it seems that (...
Barry's user avatar
  • 132
0 votes
1 answer
69 views

websocat command argument equivalent for this nginx custom configuration?

I have this nginx custom configuration: server { listen 8080; server_name subdomain.domain.my.id; location /vless-ws { # Consistent with the path of V2Ray configuration if ($...
isysrg's user avatar
  • 3
-1 votes
2 answers
94 views

How to get common lines for two variables with multiline text?

I have line-by-line list of domains I got by for domain in $(nginx -qT | grep -E "^[[:space:]]*server_name" | grep -Ev "^[[:space:]]*#" | sed 's/^[ \t]*//' | sed 's/server_name //g'...
palmasd1's user avatar
  • 125
0 votes
0 answers
49 views

A problem with mastodon behind nginx

I've tried to run an instance for myself in mastodon and went through this guide and I made a few changes such as, I changed it to single user mode and I did not set up SMTP at all. Anyway now there ...
Ashkan's user avatar
  • 1
0 votes
2 answers
336 views

How to suppress nginx worker process notices?

Note: Logging is disabled but the notices still occur! I want a clean log that only shows errors for my Docker containers but nginx is just flooding the command line with noise even though I disable ...
Konrad Höffner's user avatar
0 votes
1 answer
140 views

503 Service Temporarily Unavailable while using nginx/traefik with EasyPanel & BTCPayServer?

I'm doing this all on Debian 12 VPS. I can install easypanel separately & get it working with SSL enabled. I can install btcpayserver separately using this guide to get BTC/XMR working. But I ...
deadcoder0904's user avatar
0 votes
0 answers
266 views

Cant Access Phpmyadmin on Ubuntu LTS 22.04 (HTTP Error Code 500)

I just installed phpmyadmin on my PC. I followed several instructions such as: sudo apt update sudo apt install phpmyadmin sudo ln -s /usr/share/phpmyadmin /var/www/your_domain/phpmyadmin I use NGINX ...
Dans988's user avatar
0 votes
1 answer
107 views

How does nginx work with accessing files on mounted SAMBA/CIFS share?

I have a server running nginx as a web server for video streaming and am considering using an external CIFS/SMB storage share mounted to the server. As the server would need to download and upload for ...
kataba's user avatar
  • 11
0 votes
1 answer
19 views

redirect to SSL works but get variables don't work

I have nginx and in server section and port 80 I redirect my host to port 443 such as: server { location / { return 307 https://$host$request_uri/?lang=fa } } It's work and redirect to ...
PersianGulf's user avatar
0 votes
1 answer
122 views

how to start the openresty

When I tried to start the openresty like this in CentOS 7.9, told me the nginx did not start: [root@k8sslave01 letsencrypt]# systemctl status openresty.service ● openresty.service - The OpenResty ...
Dolphin's user avatar
  • 629
0 votes
0 answers
425 views

I am unable to access my HTTP NGINX server over LAN

I have allowed the port in ufw and have the following configuration: server { listen 0.0.0.0:8000 default_server; server_name _; index index.html; access_log /var/log/nginx/html....
RadoslavL's user avatar
0 votes
0 answers
175 views

certbot letsencrypt certificate installation failed

I have a small test server at home and I registered with letsencrypt to get a valid certificate. Certificate expired and wasn't automatically renewed (no harm done, this is strictly for testing ...
ZioByte's user avatar
  • 880
0 votes
1 answer
195 views

Big Blue Button installation error: "Challenge failed for domain", thereafter "500 Internal Server Error -- nginx"

Context: I wanted to install Big Blue Button on a Ubuntu virtual machine via SSH; I followed correctly the official tutorial up to the "Install" section; I entered the following command on ...
BsAxUbx5KoQDEpCAqSffwGy554PSah's user avatar
0 votes
0 answers
20 views

single nginx config for multi apps

I am hosting my web app on linux EC2 instance. This web app contains 2 small python application called app1 & app2. What i want: request /sales -> show web on app1. request /operation -> ...
quan_bui's user avatar
0 votes
0 answers
26 views

problem making a raspberry transparent

I have a totem with Android operating system connected to a Raspberry (in DHCP) with Nginx, the Raspberry is connected to the network via Wlan interface. The totems are managed by a VM connected ...
Neffy's user avatar
  • 1
0 votes
0 answers
70 views

Apache2 ReverseProxy to Nginx Unit subfolder issues

I want to configure a simple reverse proxy in Apache2 to play around with Nginx Unit <Location /nextcloud> RequestHeader set X-Forwarded-Proto "https" RequestHeader ...
Cookie's user avatar
  • 13
1 vote
1 answer
93 views

nginx problems redirecting non-www to my index.html page

I'm ran into an issue with Nginx and I need your help. I've created 2 A DNS records: www.domain_name.docker.hub.registry.domain_nameetc.com and domain_name.docker.hub.registry.domain_nameetc.com I ...
Brandon Michael Hunter's user avatar
0 votes
0 answers
2k views

Modify a Set-Cookie header with nginx by adding ";SameSite=None"

I'm having a hard time on this... My server sets multiple cookies and wants to rewrite one of them by appending ";SameSite=None" to it. Prefer not to append this to all Set-Cookie headers. I ...
Asanka's user avatar
  • 1
-2 votes
1 answer
61 views

When wildcard is used in logs directory, what does the size tell? The size of 1 log or the total size of all the logs?

https://www.keycdn.com/support/logrotate#maxsize This limits each log file's size to the specified number of bytes /var/log/nginx/*.log { size 50G } Does the 50G size here means the size of all the ...
achhainsan's user avatar
-2 votes
1 answer
565 views

How to modify nginx configuration with ansible?

I want to add websites with SSL-certificates and URL-redirects to my running nginx-server. I thought of adding a config per website to nginx/conf.d/newsite.conf and then restarting nginx, but I ...
wellumies's user avatar
0 votes
0 answers
175 views

NGINX abruptly stopped working after system restart

I'm using Rocky Linux. My NGINX setup randomly stopped working after having previously worked perfectly for months, now all of my reverse proxy sites don't work anymore. I receive an ...
SeaswimmerTheFsh's user avatar
0 votes
1 answer
47 views

Http outperformed Http2 ,why, please help me to figure out?

I'm currently conducting performance testing on my NGINX web server container and I'm encountering some unexpected results. My tests show that HTTP performance is outperforming HTTP/2, despite SSL and ...
Mhd HZ's user avatar
  • 1
0 votes
0 answers
102 views

How to create a catch all https "default_server" for "Welcome to Nginx!" Page, using self signed certificate in /etc/nginx/conf.d/default.conf

I am running a LEMP server with Nginx, and have the "listen 80 default_server;" directive enabled for port 80 in the catch all /etc/nginx/conf.d/default.conf directive. When I browse to the ...
DanRan's user avatar
  • 113
0 votes
1 answer
199 views

Linux host Why can't I ssh into host after adding myself to www-data group?

I've setup a website on a EC2 Linux host (hosted by NGINX). The directory /var/www/html has owner:group as www-data:www-data, so I figured I'd add myself to the www-data group so I was able to edit ...
PatS's user avatar
  • 614
0 votes
1 answer
73 views

Nginx. Multiple sites on the same server causes error 500

I have two domains linked to the same server: domain1.com and domain2.com. When I try to configure two separate websites using these domain names, I encounter an nginx error 500. I have set up nginx ...
Antareo's user avatar
0 votes
0 answers
998 views

Nginx Permission denied

I am using Nginx to serve static files from server. Static file is located in root folder, /server/cdn. I give all permission to this folder with sudo chmod 777 -R server command. Also I changed the ...
Alok Prakash's user avatar
0 votes
1 answer
104 views

NGINX: Everyday server stops working at same time

I've got an NGINX server on a Debian OS(10) that is hosting a webpage. Every day at a specific time the server stops working for around 1-2minutes. This happens every day from 19.11 until 22.11(11 ...
zerocool's user avatar
1 vote
0 answers
22 views

enhance performance in XEN VMs when copying lots of files inside the host

When I copy large amounts of data back and forth on my Debian XEN server in the host-VM, the server response in the webserver-VM with nginx becomes very slow. This is how I cause the problem in the ...
rubo77's user avatar
  • 29.4k
1 vote
1 answer
5k views

Using apk add to install a specific version of package from alpinelinux.org

I'm trying to use nginx-mod-http-lua on Alpine v3.17-stable. I want to use this specific 1.24.0-r2 version of the package which was just released two days ago. I'm trying docker run -it nginx:1.24.0-...
Kenn's user avatar
  • 121
3 votes
1 answer
300 views

docker run cap-drop=net_bind_service still has nginx running on the port 80

docker run --rm --cap-drop=net_bind_service --publish 8080:80 --name nginx nginx ps --forest -fC nginx UID PID PPID C STIME TTY TIME CMD root 449870 449847 0 12:38 ? ...
DmitrySemenov's user avatar
1 vote
0 answers
337 views

How to keep form data in NGINX redirect?

I have a flask server and nginx handling the incoming connections. When I call a specific method of the flask api using https it works fine, the problem is when nginx redirects from http to https and ...
kithuto's user avatar
  • 111
0 votes
0 answers
95 views

DNS record configuration to work with server blocks and virtual hosts

What is the correct DNS configuration for multiple subdomain names, so that they will work with nginx server blocks and/or Apache virtual hosts? Example: Server IP Address: 192.0.2.0 Main/primary ...
kmiklas's user avatar
  • 161
1 vote
0 answers
230 views

nginx and workers and linux tcp sockets/lsof

I started nginx with just a single worker. ps --forest -fC nginx UID PID PPID C STIME TTY TIME CMD root 3615889 10118 0 14:18 ? 00:00:00 nginx: master ...
DmitrySemenov's user avatar

1
2 3 4 5
15