Apache関連 Part11
■ このスレッドは過去ログ倉庫に格納されています
0727名無しさん@お腹いっぱい。
2011/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' http://localhost/index.html
base
$ curl -H 'Host: www.example.com' http://localhost/index.html
www
$ curl -H 'Host: aaa.example.com' http://localhost/index.html
www2
$ curl -H 'Host: bbb.example.com' http://localhost/index.html
www3
$ curl -H 'Host: ccc.example.com' http://localhost/index.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
略
=> rewrite_log より /var/www/example//index.html へアクセスしていることを確認
■ このスレッドは過去ログ倉庫に格納されています