|
# tar xvzf apache_1.3.27.tar.gz
# cd apache_1.3.27
# ./configure
# make
# make install
これで Apacheのインストールは完了です。
Webmin から
サーバ
をクリックし、そこに表示される
Apache Webserver
アイコンをクリックします。
モジュール設定
をクリックするとこのような画面が表示されるので、設定内容はこの通りに入力して
保存
をクリックします。
設定を左の画像のように設定します。
この設定で /etc/rc.d/init.d/ ディレクトリに httpd という名前のスクリプトが作成され、/etc/rc.d/rc*.d/ ディレクトリに「Sなんたら」とか「Kなんたら」いう Linux特有の起動/停止記述もしてくれます。
この辺り、Webminは楽です。
# cat /etc/man.config
# This file is also read by man in order to find how to call nroff, less, etc.,
# and to determine the correspondence between extensions and decompressors.
#
# MANBIN /usr/local/bin/man
#
# Every automatically generated MANPATH includes these fields
#
MANPATH /usr/man
MANPATH /usr/local/man
MANPATH /usr/X11R6/man
MANPATH /usr/lib/perl5/man
MANPATH /usr/local/apache/man
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
<Directory "/home/hiroshi/public_html">
AllowOverride FileInfo AuthConfig Limit
Options MultiViews SymLinksIfOwnerMatch Includes ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
設定にある
Options
のパラメータの意味は次の通りです。
#
# AddHandler allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into the server
# or added with the Action command (see below)
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddType text/html .html
AddHandler server-parsed .shtml
AddHandler server-parsed .html
# cd /usr/local/apache
# mv htdocs/ htdocs_old/
# ln -s /home/hiroshi/public_html/ htdocs/
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options MultiViews SymLinksIfOwnerMatch Includes ExecCGI