Fix one typo in upgrade tutorial.
This commit is contained in:
parent
0daaf2160a
commit
ad8e87362f
|
@ -191,6 +191,8 @@ but failed.
|
|||
|
||||
Create file `/etc/fail2ban/jail.d/nginx-http-auth.local` with content below:
|
||||
|
||||
!!! attention
|
||||
|
||||
If directory `/etc/fail2ban/jail.d/` doesn't exist, you can append content
|
||||
below in file `/etc/fail2ban/jail.local` instead.
|
||||
|
||||
|
@ -198,7 +200,7 @@ Create file `/etc/fail2ban/jail.d/nginx-http-auth.local` with content below:
|
|||
[nginx-http-auth]
|
||||
enabled = true
|
||||
filter = nginx-http-auth
|
||||
action = iptables-multiporti[name=nginx, port="80,443", protocol=tcp]
|
||||
action = iptables-multiport[name=nginx, port="80,443", protocol=tcp]
|
||||
logpath = /var/log/nginx/error.log
|
||||
```
|
||||
|
||||
|
|
|
@ -229,13 +229,15 @@ wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/fi
|
|||
<p>Let's add a new jail to stop bad clients which tried to perform http basic auth
|
||||
but failed.</p>
|
||||
<p>Create file <code>/etc/fail2ban/jail.d/nginx-http-auth.local</code> with content below:</p>
|
||||
<pre><code>If directory `/etc/fail2ban/jail.d/` doesn't exist, you can append content
|
||||
below in file `/etc/fail2ban/jail.local` instead.
|
||||
</code></pre>
|
||||
<div class="admonition attention">
|
||||
<p class="admonition-title">Attention</p>
|
||||
<p>If directory <code>/etc/fail2ban/jail.d/</code> doesn't exist, you can append content
|
||||
below in file <code>/etc/fail2ban/jail.local</code> instead.</p>
|
||||
</div>
|
||||
<pre><code>[nginx-http-auth]
|
||||
enabled = true
|
||||
filter = nginx-http-auth
|
||||
action = iptables-multiporti[name=nginx, port="80,443", protocol=tcp]
|
||||
action = iptables-multiport[name=nginx, port="80,443", protocol=tcp]
|
||||
logpath = /var/log/nginx/error.log
|
||||
</code></pre>
|
||||
|
||||
|
|
Loading…
Reference in New Issue