WebDAV用にApache2.0を導入してみる
Modified: 21 July 2002
WindowsXPで、WebDAVが使えないので困っていましたが、Apache2.0では使えることがわかってきましたので、Apache2.0を導入してみることにしました。
WebDAV用に導入しますので、ポート番号を変えて、2つのApacheを稼動することになります。
ダウンロードからインストール (21 July 2002)
基本的な動作確認 (21 July 2002)
ダウンロード
以下からダウンロードできます。
私は、"httpd-2.0.39.tar.gz" をダウンロードしました。(21 July 2002)
解凍してMAKEする
以下のコマンドで解凍します。
$ tar zxvf httpd-2.0.39.tar.gz
:
$ cd httpd-2.0.39
:
$ ./configure --enable-dav=yes
:
$ make
:
$
WebDAVを使いたいので、"--enable-dav=yes" を指定しました。
インストールする
ルートになってインストールします。
$ su
password: ******
# make install
:
#
Apacheは、"/usr/local/apache2" にインストールされます。
まず起動してみる
どんな設定が必要がどうかの確認を含めて、とりあえず起動してみます。
# /usr/local/apache2/bin/apachectl start
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
#起動しましたが、上記のメッセージが出ました。サーバーのドメイン名の指定が足らないようです。
"/usr/local/apache2/conf/httpd.conf" を開き、”ServerName”のコメントをはずして、ホストアドレスかIPアドレスを指定します。
ポート番号も同時に指定します。
:
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 81
:
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName 192.168.0.81:81
:
通常、ポート番号はは、"80" です。
Apacheを2つ起動するため、このApacheのポートは、"81" にしました。
ブラウザで表示してみる
以下のページが出ればOKです。
URLとして、"http://192.168.0.81:81" を指定します。
この奇妙な日本語訳、いったい誰が訳したのでしょう。訳した言葉が不自然な日本語でることがわからなかったのでしょうかね。いつになったら直すのでしょうかね。