Fix one typo in upgrade tutorial.

This commit is contained in:
Zhang Huangbin 2017-11-14 21:12:53 +08:00
parent 0daaf2160a
commit ad8e87362f
2 changed files with 9 additions and 5 deletions

View File

@ -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
```

View File

@ -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=&quot;80,443&quot;, protocol=tcp]
action = iptables-multiport[name=nginx, port=&quot;80,443&quot;, protocol=tcp]
logpath = /var/log/nginx/error.log
</code></pre>