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
12 views

how to make openresty support pdf partial download

I am using react pdf 9.1.0 to show the pdf in browser, now I want to make the react pdf support the partial download. The server side was using openresty, I read the pdf.js manual that told me to make ...
Dolphin's user avatar
  • 653
0 votes
1 answer
25 views

NGINX x-forwarded-proto not working

I have an ASP.NET app hosted in a Docker container, with a NGINX reverse proxy, hosted on a VPS. When running in production, the x-forwarded-proto header isn't being passed. From what I understand, ...
Etienne Charland's user avatar
1 vote
2 answers
32 views

What may be preventing access to unpriviledge port on this service unit?

Trying to start nginx via systemd service, I think I gave all permissions it need for unpriviledged ports, even added CAP_NET_BIND_SERVICE, but still get: nginx[122819]: 2024/09/01 04:11:38 [emerg] ...
gcb's user avatar
  • 488
0 votes
1 answer
55 views

Redirected too many times after adding ssl certificate to nginx

Before adding ssl_certificate, my nginx.conf is very simple: server { listen 80 default_server; index index.php index.html index.htm; location ~ [^/]\.php(/|$) { ...
xpt's user avatar
  • 1,694
0 votes
1 answer
74 views

About Let’s Encrypt's certification renew and nginx

I'm doing the Let’s Encrypt for the firs time and this 101 question might quite possibly have been answered somewhere, but anyway, from https://eff-certbot.readthedocs.io/en/latest/using.html#setting-...
xpt's user avatar
  • 1,694
0 votes
0 answers
25 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
27 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
  • 625
0 votes
0 answers
17 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
0 votes
0 answers
21 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
75 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
60 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
20 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
13 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
43 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
28 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
42 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
290 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
299 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
174 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
90 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.8k
3 votes
1 answer
368 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
103 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
102 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
  • 127
0 votes
0 answers
60 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
479 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
168 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
326 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
140 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
20 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
148 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
  • 653
0 votes
0 answers
484 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
216 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
213 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
27 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
74 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
108 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
66 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
658 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
193 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
113 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
221 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
  • 624
0 votes
1 answer
79 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
1k 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
114 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
23 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.6k
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
323 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
2 3 4 5
15