| HOME | INDEX |

   
 

Apacheインストール

   
     

Apacheのインストール

   



# apt-get install apache

 

httpd.confの設定

   


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


# vi /etc/apache/httpd.conf

ServerName www.mallet.jp

DocumentRoot /home/www/htdocs

AddDefaultCharset off

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

<Directory /home/www/htdocs>

<Directory /home/*/public_html>

 

Apacheの起動と停止

   


apacheの起動


# /etc/init.d/apache start

apacheの停止


# /etc/init.d/apache stop

apacheの再起動


# /etc/init.d/apache restart


 
 
   
Copyright © 2002-2004 by mallet, All rights reserved