11/11/02 05:48:04.13
続き
* directory
$ head /var/www/example/*/*.html
==> /var/www/example/base/index.html <==
base
==> /var/www/example/www/index.html <==
www
==> /var/www/example/www2/index.html <==
www2
==> /var/www/example/www3/index.html <==
www3
* result
$ curl -H 'Host: example.com' URLリンク(localhost)
base
$ curl -H 'Host: www.example.com' URLリンク(localhost)
www
$ curl -H 'Host: aaa.example.com' URLリンク(localhost)
www2
$ curl -H 'Host: bbb.example.com' URLリンク(localhost)
www3
$ curl -H 'Host: ccc.example.com' URLリンク(localhost)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
略
=> rewrite_log より /var/www/example//index.html へアクセスしていることを確認