서버 설정 · 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
Share: X/Twitter LinkedIn

새 게시물을 받은 편지함에서 받기

스팸은 없습니다. 언제든지 구독 해지 가능합니다.