サーバー設定 · 1 min read · Oct 10, 2025
小規模ビジネス環境のためのファイアウォール/ゲートウェイとしてのUbuntu-Server 6.06 LTSの設定 - ページ 4
次に /etc/courier/imapd-ssl を編集し、以下のように変更します:
TLS_CERTFILE=/etc/apache2/ssl/apache.pem次に、/etc/courier/pop3d-ssl でも同様のことを行います。
次に /etc/apache2/sites-available/default を編集します。ファイルの先頭は以下のように変更する必要があります:
NameVirtualHost *:80
/etc/apache2/sites-available/https も編集します。ファイルの先頭は以下のようにする必要があります:
NameVirtualHost *:443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem /etc/squirrelmail/apache.conf を編集します。以下のようになります:
Alias /webmail /usr/share/squirrelmail
php_flag register_globals off
Options Indexes FollowSymLinks
DirectoryIndex index.php
# configtest へのアクセスは情報漏洩を防ぐためにデフォルトで制限されています
order deny,allow
deny from all
allow from 127.0.0.1
# ユーザーは http://webmail.example.com のようなシンプルなURLを好むでしょう
#
# DocumentRoot /usr/share/squirrelmail
# ServerName webmail.example.com
#
# 利用可能な場合は https にリダイレクトします(感謝 [email protected])
#
# 注:これを行う方法はいくつかあり、どの方法があなたのサイトの構成に適しているかは異なります。
# 不明な場合はapacheのドキュメントを参照してください。この例はすべての場所で機能するわけではありません。
#
RewriteEngine on
RewriteCond %{HTTPS} !^on$ [NC]
RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
次に、/etc/apache2/apache2.conf の DirectoryIndex 行が以下のように読み取られることを確認します:
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml/etc/apache2/ports.conf を編集し、Listen 443 を追加します:
Listen 80
Listen 443新しい投稿を受信箱で受け取る
スパムはありません。いつでも購読を解除できます。