This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:roundcube [2026/11/02 17:36] – oemb1905 | computing:roundcube [2026/11/07 17:28] (current) – oemb1905 | ||
|---|---|---|---|
| Line 155: | Line 155: | ||
| systemctl restart apache2 php8.4-fpm | systemctl restart apache2 php8.4-fpm | ||
| </ | </ | ||
| + | |||
| + | After update, you might need to update db tables or what not. Check the forums. Here's a 1.6 to 1.7 change and the script that roundcube provided to update the db: | ||
| + | |||
| + | cd / | ||
| + | sudo -u www-data ./ | ||
| To setup a fail2ban filter that works with this setup, use something like the following: | To setup a fail2ban filter that works with this setup, use something like the following: | ||
| Line 186: | Line 191: | ||
| chown www-data: | chown www-data: | ||
| - | --- // | + | For nginx, you can use these: |
| + | |||
| + | < | ||
| + | server { | ||
| + | listen 80; | ||
| + | listen [::]:80; | ||
| + | server_name mail.domain.com; | ||
| + | return 301 https:// | ||
| + | } | ||
| + | |||
| + | server { | ||
| + | listen 443 ssl http2; | ||
| + | listen [::]:443 ssl http2; | ||
| + | server_name mail.domain.com; | ||
| + | |||
| + | root / | ||
| + | index index.php; | ||
| + | |||
| + | ssl_certificate | ||
| + | ssl_certificate_key / | ||
| + | |||
| + | access_log / | ||
| + | error_log | ||
| + | |||
| + | location / { | ||
| + | try_files $uri $uri/ / | ||
| + | } | ||
| + | |||
| + | # Required for 1.7+ static assets (skins, plugins, program) | ||
| + | location ~ ^/ | ||
| + | try_files $uri / | ||
| + | } | ||
| + | |||
| + | location ~ \.php(?: | ||
| + | fastcgi_split_path_info ^(.+\.php)(/ | ||
| + | include snippets/ | ||
| + | fastcgi_pass unix:/ | ||
| + | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| + | fastcgi_param PATH_INFO $fastcgi_path_info; | ||
| + | include fastcgi_params; | ||
| + | } | ||
| + | |||
| + | # Lock down installer after setup - UNLOCK / COMMENT OUT when fixing | ||
| + | #location ~ ^/ | ||
| + | # deny all; | ||
| + | #} | ||
| + | |||
| + | location ~ /\.ht { | ||
| + | deny all; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | And for fail2ban: | ||
| + | |||
| + | < | ||
| + | nano / | ||
| + | [Definition] | ||
| + | failregex = ^< | ||
| + | ^< | ||
| + | ^< | ||
| + | ignoreregex = | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | nano / | ||
| + | [roundcube-haack] | ||
| + | enabled | ||
| + | port = http, | ||
| + | filter | ||
| + | logpath | ||
| + | maxretry = 2 | ||
| + | </ | ||
| + | |||
| + | --- // | ||