Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
server:squirrelmail [2010/02/21 12:13] ewald Installation und Konfiguration |
server:squirrelmail [2011/12/10 11:10] (aktuell) ewald Anpassungen für Debian 6.0 |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Squirrelmail unter Debian 5.0 ====== | + | ====== SquirrelMail unter Debian 6.0 ====== |
| - | + | ||
| - | Voraussetzungen: [[server:apache|Apache 2.2]] mit [[server:php|PHP 5]]. | + | |
| ===== Installation ===== | ===== Installation ===== | ||
| Zeile 7: | Zeile 5: | ||
| * Paket einspielen: | * Paket einspielen: | ||
| - | # aptitude install squirrelmail squirrelmail-decode ingerman wngerman | + | # apt-get install squirrelmail squirrelmail-decode ingerman wngerman |
| - | ===== Konfiguration ===== | + | ===== SquirrelMail-Konfiguration ===== |
| - | * Squirrelmail-Konfigurationsprogramm aufrufen: | + | * SquirrelMail-Konfigurationsprogramm aufrufen: |
| # /usr/sbin/squirrelmail-configure | # /usr/sbin/squirrelmail-configure | ||
| Zeile 32: | Zeile 30: | ||
| S (Save data) | S (Save data) | ||
| Q (Quit) | Q (Quit) | ||
| + | |||
| + | ===== Apache-Konfiguration ===== | ||
| * Basis-Pfad für URL auf ''webmail'' anstatt ''squirrelmail'' festlegen: | * Basis-Pfad für URL auf ''webmail'' anstatt ''squirrelmail'' festlegen: | ||
| Zeile 46: | Zeile 46: | ||
| Allow from all | Allow from all | ||
| - | * Zugriff soll immer per HTTPS erfolgen: | + | * Zugriff per HTTPS erzwingen: |
| - | **TODO** | + | # vi /etc/squirrelmail/apache.conf |
| + | [...] | ||
| + | # redirect to https when available (thanks omen@descolada.dartmouth.edu) | ||
| + | # | ||
| + | # Note: There are multiple ways to do this, and which one is suitable for | ||
| + | # your site's configuration depends. Consult the apache documentation if | ||
| + | # you're unsure, as this example might not work everywhere. | ||
| + | # | ||
| + | <IfModule mod_rewrite.c> | ||
| + | <IfModule mod_ssl.c> | ||
| + | <Location /webmail> | ||
| + | RewriteEngine on | ||
| + | RewriteCond %{HTTPS} !^on$ [NC] | ||
| + | RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L] | ||
| + | </Location> | ||
| + | </IfModule> | ||
| + | </IfModule> | ||
| + | |||
| + | * Website konfigurieren (sicherstellen, dass SSL-Zugriff auf ''webmail.disorganized.de'' auf ''disorganized.de/webmail'' umgeleitet wird): | ||
| + | |||
| + | # vi /etc/apache2/sites-available/disorganized | ||
| + | <VirtualHost *:443> | ||
| + | [...] | ||
| + | <IfModule mod_rewrite.c> | ||
| + | [...] | ||
| + | # https://webmail.disorganized.de/... -> https://disorganized.de/webmail/... | ||
| + | RewriteCond %{HTTP_HOST} ^webmail.disorganized.de$ [NC] | ||
| + | RewriteRule . https://disorganized.de/webmail%{REQUEST_URI} [R=301,L] | ||
| + | </IfModule> | ||
| + | </VirtualHost> | ||
| + | |||
| + | <VirtualHost *:80> | ||
| + | ServerName webmail.disorganized.de | ||
| + | Redirect permanent / https://disorganized.de/webmail/ | ||
| + | </VirtualHost> | ||
| - | * Apache-Konfigurationsschnippsel aktivieren: | + | * Apache-Konfigurationsschnippsel einbinden: |
| # ln -s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf | # ln -s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf | ||
| * Apache neu starten, SSL-Redirect testen usw. | * Apache neu starten, SSL-Redirect testen usw. | ||