Ngx_pagespeed is loaded, but do nothing on HTTPS website. Why is that?

The module ngx_pagespeed(Nginx) works very well for HTTP. However, I cannot get it working with HTTPS. My whole website is using HTTPS and ngx_pagespeed seems to have none of their filters...

403 forbidden error, in Nginx configuration for Wordpress site

I'm configuring a Nginx site for Wordpress and I'm getting this error: 2014/11/21 16:39:24 [error] 38741#0: *2 directory index of "/var/www/html/jurisprudencialaboral.dev/" is forbidden,...

fail2ban frequently bans me from WordPress admin due to noscript nginx

I configured my Ubuntu 14.04, Nginx 1.6.2 server fail2ban to block noscript requests. This server runs two WordPress sites. When I'm doing wp-admin area works, randomly I got banned. When I'm...

Base URLs like example.com not working in NGinx

I have 12 sites that I plan to run on a single server that has NGinx and php5-fpm on it. I set them all up using one server block per conf file, all included by the main nginx.conf file. It's a...

WordPress infinite redirect loop when accessing wp-admin

I've just moved my wordpress blog on a new server. i reconfigured nginx conf files and the front end works great. However when i try to access mywebsite.com/wp-admin area i get an infinite...

how to make fail2ban read json docker logs

Is it possible to configure my fail2ban jail.conf to inspect the docker logs instead of mounting the log in the host. for example to set the logpath to the path of the log of the...

Secure server with Fail2ban and Docker

I use nginx in a docker container and I can easily share my log file on my nginx docker container with host. The log are on it and work on /var/log/nginx folder. I have install fail2ban on host to...

fail2ban regex negative-lookahead

I have an apache access log filter in fail2ban which uses a blacklist of words e.g. (db|project|wp-admin|wp-content) which works but due to certain paths and certain gotchas decided to add an...

Nginx Caching 404

I am using WordPress with Nginx but whenever I try to enable caching of static files they turn to 404 not found. This is my /etc/nginx/conf.d/default.conf file: server { listen 80; ...

fail2ban ipv6 support doesn't work

I've installed fail2ban in my web hosting and it is monitoring wordpress login attemps through the access_log file. Once I configured fail2ban to filter wp logins with this regexp: failregex =...

PHP File downloads if Nginx deny rule enabled

I've had an Nginx server running for over a year with no issues, it serves HTML and PHP files just fine for the Wordpress sites on it. Recently there was some brute force attacks on the...

Nginx "502 Bad Gateway" after I recover my vps from a former snapshot and relocate to anther IP

As the title, I use nginx/hhvm/wordpress to run my blog. At first, I guessed there was some hard-coding in some config files. But I have checked every config files, there is no hard-coding at all....

Ubuntu Server is randomly going down

I am having some trouble with my Digital Ocean's server which has a blog running on Wordpress. Randomly the server goes on 100% memory/processing and over 200MB/s Disk IO until the blog...

File Not Found When Access Direct File on Wordpress Using Nginx and PHP-FPM

I'm running Wordpress on Nginx 1.12.2 and PHP-fpm using this configuration : server { listen 80; server_name myweb.com; return 301 $scheme://www.myweb.com$request_uri; } server...

I can't configure multiple nginx server blocks

I recently installed nginx and php7.0 on my raspberry pi 3 (Raspbian Stretch) and I couldn't configure the server configuration files. Here is information of nginx and php: $ sudo nginx -v nginx...

How to use Fail2ban under Kubernetes?

Until now I'm using Docker for a hand-made hosting solution on single-VPCs, with fail2ban installed on host and watching at Docker logs from Nginx containers (Each server can host multiple...

Create fail2ban filter for Wordpress under nginx

I'm trying to create a fail2ban filter for wordpress under nginx, but its not working and need some help. The Log: 111.111.111.111 - - [27/Oct/2019:02:54:48 +0200] "POST /wp-login.php HTTP/1.1"...

How to use fail2ban for Nginx error "Primary script unknown"

I use Ubuntu 20.04 and Fail2ban, but errors like this are not filtered. This error appears in /var/log/nginx/error.log. How do I make settings in Fail2ban to block bots like this? 2020/12/31...