| Line 31: |
Line 31: |
| | You should know about this already: you need an “MX” record on your DNS server, and it needs to point to your main server where you’ll run your email, web, etc. | | You should know about this already: you need an “MX” record on your DNS server, and it needs to point to your main server where you’ll run your email, web, etc. |
| | | | |
| | + | === Apache === |
| | + | /etc/apache2/sites-available/webmail.conf |
| | + | <nowiki><VirtualHost *:80> |
| | + | ServerAdmin rafael@herrerosolis.com |
| | + | Redirect permanent / https://webmail.herrerosolis.com/ |
| | + | # DocumentRoot /var/www/rafael |
| | + | ServerName webmail.herrerosolis.com |
| | + | ServerAlias webmail.herrerosolis.com |
| | + | ErrorLog /var/log/apache2/webmail/error.log |
| | + | |
| | + | # Posible values include: debug, info, notice, warn, error, crit. |
| | + | # alert, emerg. |
| | + | |
| | + | CustomLog /var/log/apache2/webmail/access.log combined |
| | + | </virtualHost> |
| | + | |
| | + | <VirtualHost *:443> |
| | + | ServerAdmin rafael@herrerosolis.com |
| | + | DocumentRoot /var/lib/roundcube |
| | + | ServerName webmail.herrerosolis.com |
| | + | ServerAlias webmail.herrerosolis.com |
| | + | |
| | + | ErrorLog /var/log/apache2/webmail/error.log |
| | + | |
| | + | # Posible values include: debug, info, notice, warn, error, crit. |
| | + | # alert, emerg. |
| | + | CustomLog /var/log/apache2/webmail/access.log combined |
| | + | SSLEngine on |
| | + | SSLCertificateFile /etc/ssl/certs/herrerosolis.crt |
| | + | SSLCertificateKeyFile /etc/ssl/private/herrerosolis.key |
| | + | </virtualHost> |
| | + | </nowiki> |
| | | | |
| | http://bradthemad.org/tech/notes/exim_cheatsheet.php | | http://bradthemad.org/tech/notes/exim_cheatsheet.php |