Apache関連 Part11at UNIX
Apache関連 Part11 - 暇つぶし2ch727:名無しさん@お腹いっぱい。
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 へアクセスしていることを確認



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch