Fix nginx config file location.

This commit is contained in:
Zhang Huangbin 2019-03-11 22:14:37 +08:00
parent e3ad5d89e8
commit e962c39e82
2 changed files with 17 additions and 12 deletions

View File

@ -123,16 +123,19 @@ Restart Apache or php-fpm service to make it work.
## Change upload file size in Nginx ## Change upload file size in Nginx
Find setting `client_max_body_size` in Nginx config file Find setting `client_max_body_size` in Nginx config file
`/etc/nginx/nginx.conf`, change it to a proper value to match your need. `/etc/nginx/conf-enabled/client_max_body_size.conf`, change the size to a
proper value to match your need.
!!! attention
Old iRedMail releases set this parameter in `/etc/nginx/nginx.conf`.
``` ```
http { client_max_body_size 100m;
...
client_max_body_size 100m;
...
}
``` ```
Reloading or restarting Nginx service is required.
## Change file size limits in SOGo ## Change file size limits in SOGo
SOGo config file is `/etc/sogo/sogo.conf` (Linux/OpenBSD) or SOGo config file is `/etc/sogo/sogo.conf` (Linux/OpenBSD) or

View File

@ -145,14 +145,16 @@ php_value post_max_size 100M
<p>Restart Apache or php-fpm service to make it work.</p> <p>Restart Apache or php-fpm service to make it work.</p>
<h2 id="change-upload-file-size-in-nginx">Change upload file size in Nginx</h2> <h2 id="change-upload-file-size-in-nginx">Change upload file size in Nginx</h2>
<p>Find setting <code>client_max_body_size</code> in Nginx config file <p>Find setting <code>client_max_body_size</code> in Nginx config file
<code>/etc/nginx/nginx.conf</code>, change it to a proper value to match your need.</p> <code>/etc/nginx/conf-enabled/client_max_body_size.conf</code>, change the size to a
<pre><code>http { proper value to match your need.</p>
... <div class="admonition attention">
client_max_body_size 100m; <p class="admonition-title">Attention</p>
... <p>Old iRedMail releases set this parameter in <code>/etc/nginx/nginx.conf</code>.</p>
} </div>
<pre><code>client_max_body_size 100m;
</code></pre> </code></pre>
<p>Reloading or restarting Nginx service is required.</p>
<h2 id="change-file-size-limits-in-sogo">Change file size limits in SOGo</h2> <h2 id="change-file-size-limits-in-sogo">Change file size limits in SOGo</h2>
<p>SOGo config file is <code>/etc/sogo/sogo.conf</code> (Linux/OpenBSD) or <p>SOGo config file is <code>/etc/sogo/sogo.conf</code> (Linux/OpenBSD) or
<code>/usr/local/etc/sogo/sogo.conf</code> (FreeBSD), 2 settings are relevant to message size:</p> <code>/usr/local/etc/sogo/sogo.conf</code> (FreeBSD), 2 settings are relevant to message size:</p>