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
1 answer
18 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
11 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
24 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
17 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
29 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
11 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
0 answers
15 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.6k
3 votes
1 answer
75 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
  • 133
0 votes
1 answer
22 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
  • 1
-1 votes
2 answers
83 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
  • 115
0 votes
0 answers
32 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
136 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
92 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
159 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
74 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
18 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
  • 10.9k
0 votes
1 answer
87 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
  • 609
0 votes
0 answers
328 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
133 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
  • 870
0 votes
1 answer
155 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
19 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
61 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
73 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
1k 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
60 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
419 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
150 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
46 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
79 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
0 answers
312 views

nginx on Debian returns 404 even though requested file exists

nginx on Debian returns 404 even though requested file exists I followed the official documentation (https://nginx.org/en/linux_packages.html#Debian) to install nginx on Debian. Install the ...
dwdq94's user avatar
  • 1
0 votes
1 answer
164 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
  • 604
0 votes
0 answers
76 views

haproxy SSL termination not working for login-page to nginx backend

I have nginx pods running inside K8 on port:18080 exposed on nodePort:32070 Next I have an HAPROXY sitting between nginx and public network. I want to configure SSL termination at haproxy level Below ...
Sollosa's user avatar
  • 1,941
0 votes
1 answer
67 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
941 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
97 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
20 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
  • 29k
0 votes
0 answers
53 views

Linux/Fedora Issue with NginX-Docker and maybe IPV6

I'm attempting to setup Nginx-Docker on Fedora 38 Plasma KDE (nearly fresh install). Nginx works fine connecting to my react-server (non-docker) running locally on port 3000. However, Nginx fails to ...
Psyfire's user avatar
1 vote
1 answer
4k 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
282 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
295 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
81 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
212 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
17 votes
4 answers
15k views

Installing Let's Encrypt on Amazon Linux 2023

I am trying to get SSL certificate with Let's Encrypt nginx on Amazon Linux 2023. First, I added EPEL using the commands wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm ...
Sanmi Akande's user avatar
0 votes
0 answers
637 views

Start nginx without host container being available

For local development, I have a suite of 5 sites. Each site runs in its own php-fpm container. All sites are served by a single nginx container, which contains .conf files for all the sites. They ...
amacrobert's user avatar
0 votes
1 answer
46 views

Move a line of text to a (new or existing) file, where the target (sub)directory is determined from the source file

I have a custom Nginx access log where each line begins with a ISO8601 timestamp ($time_iso8601 in Nginx parlance) and an epoch timestamp to millisecond decimal points ($msec in Nginx). Like this: ...
Pete Cooper's user avatar
1 vote
2 answers
179 views

Running Nginx as different user; updating WordPress returns "The update cannot be installed ..." error

This is my first foray into customizing Nginx, which I have running on a Digital Ocean droplet. My site files are located in /sites/rob_app. everything is owned by rob all files are 0644 all ...
rob's user avatar
  • 11
0 votes
1 answer
135 views

How can I share files on the server with others users in internet?

I have a linux server that I manage via SFTP and SSH. Some files are generated on the server through scripts. How can I make it so that I can give users on the Internet links to specific files (so ...
Voltara's user avatar
2 votes
1 answer
738 views

Some secret service is taking over port 80... I can't identify which one?

I have an nginx service that resides on ports 80 and 443 and has done som for years. Yesterday I suddenly just got a plain text page with a 404 page not found message Headers: HTTP/2 404 content-type: ...
JoSSte's user avatar
  • 185
1 vote
0 answers
3k views

how to make Nginx use home directory as root

I have set up a local server on my laptop for web development and to check the website I'm working on I should have my code base in /var/www/example.domain which is not so convenient, I want Nginx to ...
Amirreza's user avatar
  • 131

1
2 3 4 5
15