| HOME | INDEX |

   
 

Apache-sslインストール

   
     

Apache-sslのインストール

   



# apt-get install openssl
# apt-get install apache-ssl

インストール時に、証明書の作成を行う。


Country Name (2 letter code) [GB]:JP
State or Province Name (full name) [Some-State]:Kanagawa
Locality Name (eg, city) []:Chigasaki
Organization Name (eg, company; recommended) []:mallet.jp
Organizational Unit Name (eg, section) []:mallet.jp
server name (eg. ssl.domain.tld; required!!!) []:www.mallet.jp
Email Address []:

証明書の有効期限を365日に設定。


# /usr/sbin/ssl-certificate --force -days 365


 

httpd.confの設定

   


最低限の変更ディレクティブ ("/home/www-ssl/htdocs", "/home/www-ssl/cgi-bin/"は、その時の環境に合わせる)


# vi /etc/apache-ssl/httpd.conf

ServerName www.mallet.jp

DocumentRoot /home/www-ssl/htdocs

AddDefaultCharset off

ScriptAlias /cgi-bin/ "/home/www-ssl/cgi-bin/"
ScriptAliasMatch /~(..*)/cgi-bin/(.*) /home/$1/public_html/cgi-bin/$2

<Directory /home/www-ssl/htdocs>

<Directory /home/*/public_html>

 

Apacheの起動と停止

   


apacheの起動


# /etc/init.d/apache-ssl start

apacheの停止


# /etc/init.d/apache-ssl stop

apacheの再起動


# /etc/init.d/apache-ssl restart


 
 
   
Copyright © 2002-2004 by mallet, All rights reserved