nginx

fail2ban regex fails to match nginx error log

fail2ban regex fails to match nginx error log In my fail2ban configuration the filter nginx-botsearch.conf (the one that comes with Ubuntu 22.04.4 LTS) is activated. Please help me in debugging the behaviour of the regular expression ^ [error] d+#d+: *d+ (S+ )?"S+" (failed|is not found) (2: No such file or directory), client: <HOST>, server: S*, …

Total answers: 1

NGINX HTTPS not redirecting properly

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 Certbot’s automatic generation: server { server_name mnpd.khkm.dev www.mnpd.khkm.dev; # listen 8080; server_tokens off; location /.well-known/acme-challenge/ { root /var/www/certbot; …

Total answers: 1

How to logrotate official nginx docker image running by podman

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 when try to logrotate on the host machine with all configurations taken from internet it fails, for example this one: /var/log/nginx/*.log …

Total answers: 1

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

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’ | tr -d ; | grep -Ev "^_$" | sort | uniq); do echo …

Total answers: 2

How to suppress nginx worker process notices?

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 everything, is there any elegant way (e.g. not using grep as an …

Total answers: 2

Why am I seeing Apache2 Default Page while using nginx

Why am I seeing Apache2 Default Page while using nginx This is my first time setting up virtual server with Ubuntu and I have some questions regarding Apache2. When I turn the virtual server on, it was started with lightppd. Since (I thought) I’m more familiar with Apache setups in my past with XAMPP interface, …

Total answers: 1

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

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 the terminal: wget -qO- https://raw.githubusercontent.com/bigbluebutton/bbb-install/v2.7.x-release/bbb-install.sh | bash …

Total answers: 1

Installing Nginx old version 1.4.6 issue

Installing Nginx old version 1.4.6 issue When installing nginx, it requires dependent packages like nginx-core, nginx-full, nginx-nasxi, etc. After I install nginx-core and nginx-common, the remaining packagess refuse to install due to conflicts with nginx-core. The ‘main’ nginx_1.4.6 package is also ‘forget’ about dependencies on nginx-full, nginx-nasxi, etc. I have the same versions of all …

Total answers: 1

NGINX: Everyday server stops working at same time

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 minutes every full hour). I’ve checked the logs and can’t find anything. …

Total answers: 1

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

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 ? 00:00:00 nginx: master process nginx -g daemon off; 101 449929 449870 0 12:38 ? 00:00:00 _ nginx: …

Total answers: 1

How to install ngx_http_ssi_module

How to install ngx_http_ssi_module default NGINX configuration not included SSI module (don’t confuse with SSL) in my case # nginx -V nginx version: nginx/1.18.0 (Ubuntu) built with OpenSSL 1.1.1f 31 Mar 2020 TLS SNI support enabled configure arguments: –with-cc-opt=’-g -O2 -fdebug-prefix-map=/build/nginx-lUTckl/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2′ –with-ld-opt=’-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC’ –prefix=/usr/share/nginx –conf-path=/etc/nginx/nginx.conf –http-log-path=/var/log/nginx/access.log –error-log-path=/var/log/nginx/error.log …

Total answers: 1

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

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 that a …

Total answers: 1

Portainer docker container behind Nginx reverse proxy

Portainer docker container behind Nginx reverse proxy I have set up an nginx reverse proxy on an Ubuntu 22.04 server and I have successfully obtained ssl certificate from lets encrypt. The two keys are stored here: /etc/letsencrypt/live/test.ddns.net/fullchain.pem; /etc/letsencrypt/live/test.ddns.net/privkey.pem and in my default nginx config I have two paths helloworld and portainer. Both paths redirects to …

Total answers: 1

Why is apache2 still in my ubuntu after I have deleted?

Why is apache2 still in my ubuntu after I have deleted? So, I wanted to learn how to use the Nginx web server, and I wanted to try it out in my local machine, but I had apache2 installed in my laptop (ubuntu 20.04 LTS), so I tried to remove it using the following command: …

Total answers: 1

How to do this (nginx) in apache2 .htaccess?

How to do this (nginx) in apache2 .htaccess? location /.well-known/webfinger { add_header Access-Control-Allow-Origin ‘*’; return 301 https://mastodon.bitsnbytes.chat/$request_uri; } Is it possible to convert this Nginx into Apache2 .htaccess? Asked By: Uwe Pfeifer || Source In Apache / .htaccess this would be something like: Header always set Access-Control-Allow-Origin "*" RedirectMatch 301 ^/(.well-known/webfinger.*) https://mastodon.bitsnbytes.chat/$1 Answered By: MrWhite …

Total answers: 2

Ngix doesn't support architecture i386

Nginx doesn't support architecture i386 When I want to update my system sudo apt-get update the following error occur: N: Skipping acquire of configured file ‘nginx/binary-i386/Packages’ as repository ‘http://nginx.org/packages/mainline/ubuntu jammy InRelease’ doesn’t support architecture ‘i386′ I’ve tried to edit nginx.list inside of /etc/apt/sources.list.d and I changed deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/mainline/ubuntu jammy nginx with deb [arch=amd64] http://nginx.org/packages/mainline/ubuntu/ …

Total answers: 1

systemd configuration reset?

systemd configuration reset? Having already queried on the matter of syntax for restarting a server and having modified nginx.service by adding Restart=always for a few servers, a few weeks later I find the configuration file is devoid of this option. Could I possibly have misconfigured the option in the wrong block ([Service]) or is there …

Total answers: 1

How to limit access to domain in VPS, Nginx?

How to limit access to domain in VPS, Nginx? I have a debian VPS with Nginx reversed proxy for my website. And forward DNS domain to my VPS. My question is, how to limit access to public for access my website through domain? For example, i have domain: admin.websitename.com But i want this website is …

Total answers: 1