webmail_mit_roundcube
This is an old revision of the document!
Webmail mit Roundcube
Manchmal macht es einem Debian ja schon sehr einfach.
apt install roundcube php php-fpm
Dann wie üblich ein Zertifikat organisiert mit certbot und in /etc/nginx/sites-available/webmail.domain.tld anlegen mit folgendem Inhalt:
server { listen 80; server_name webmail.domain.tld; return 301 https://webmail.domain.tld$request_uri; } server { listen 443 ssl http2; server_name webmail.domain.tld; ssl_certificate /etc/letsencrypt/live/webmail.domain.tld/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/webmail.domain.tld/privkey.pem; root /var/lib/roundcube/public_html/; index index.php; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } location ~ ^/(README.md|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ { deny all; } location ~ ^/(config|temp|logs)/ { deny all; } location ~ /\. { deny all; access_log off; log_not_found off; } location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
webmail_mit_roundcube.1702904548.txt.gz · Last modified: 2023/12/18 13:02 by admin