Ubuntu – Virtual Host – Apache2 – SSL

# mkdir /etc/apache2/ssl
# cd /etc/apache2/ssl
# openssl req -new -x509 -days 3650 -nodes -out /etc/apache2/ssl/ServerDienstCert.pem -keyout /etc/apache2/ssl/ServerDienstKey.pem
# a2enmod ssl
# vi apache2.conf

Listen 443
<VirtualHost IPDesServers:443>
ServerName FQDN
DocumentRoot  /Wo/Auch/Immer/
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/ServerDienstCert.pem
SSLCertificateKeyFile /etc/apache2/ssl/ServerDienstKey.pem
</VirtualHost>

# service apache2 restart

Ubuntu – fail2ban – SSH – Dovecot – Postfix

Genervt von den Bruteforce Login Versuchen?

iptables aktivieren

# aptitude install fail2ban

# vi /etc/fail2ban/jail.conf

destemail = Webmaster@
ignoreip = 127.0.0.1/8 aaa.bbb.ccc.ddd/32 eee.fff.ggg.hhh/24

[ssh]
enabled  = true

[dovecot]
enabled = true

[postfix]
enabled  = true

# /etc/init.d/fail2ban restart

Ubuntu – roundcube – virtual host

# aptitude install roundcube
# cat /etc/apache2/conf.d/roundcube > /etc/apache2/sites-available/webmail.conf
# vi /etc/apache2/sites-available/webmail.conf

<VirtualHost aaa.bbb.ccc.ddd:80>
ServerName webmail.DOMAIN.DOM
Alias /program/js/tiny_mce/ /usr/share/tinymce/www/
Alias / /var/lib/roundcube/
...
</VirtualHost>

# vi /etc/roundcube/main.inc.php

$rcmail_config['default_host'] = 'localhost';
$rcmail_config['language'] = 'de_DE';
$rcmail_config['date_format'] = 'd-m-Y';
$rcmail_config['create_default_folders'] = true;

# a2ensite webmail.conf
# service apache2 reload