[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

[linux-users:72042] Re: ドメイン名が同じバーチャルホストの設定


> 加藤@広島と申します。
>  いつもお世話になっています。

はじめまして、青柳@ex-borderです。

>  さて、RedHatLinux6.1J+Apache1.3.9で以下の
> ようにドメイン名が同じバーチャルホストの設定
> をしているのですが、www.bien.co.jpのドキュメント
> ルートしか読みに行きません。
> NameVirtualHost 192.168.10.70
> 
> <VirtualHost aaa.bien.co.jp>
> DocumentRoot /home/httpd/html/aaa
> ServerName aaa.bien.co.jp
> </VirtualHost>
> 
> <VirtualHost bbb.bien.co.jp>
> DocumentRoot /home/httpd/html/bbb
> ServerName bbb.bien.co.jp
> </VirtualHost>
> 
> <VirtualHost www.bien.co.jp>
> DocumentRoot /home/httpd/html
> ServerName www.bien.co.jp>
> </VirtualHost>
> 
>  ドメイン名が、同じだったらもしかして、
> バーチャルホストの設定はできないのでしょうか?
>  どなたかご教授いただければ幸いです。

NameVirtualHost 192.168.0.2

<VirtualHost 192.168.0.2>
    ServerName AAA.hoge.com
    ServerAdmin webmaster _at_ hoge.com
    DocumentRoot /home/AAA/public_html
</VirtualHost>

<VirtualHost 192.168.0.2>
    ServerName BBB.hoge.com
    ServerAdmin webmaster _at_ hoge.com
    DocumentRoot /home/BBB/public_html
</VirtualHost>

こんな感じで、出来るように思うのですが・・・。
外していたら、ごめんなさい。

==============================================
 エックスボーダー( http://www.ex-border.com/)
 Tel 03-5914-2235 / Fax 03-5970-7799
 青柳 武志(t.aoyagi _at_ ex-border.com)
==============================================

この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: