07/03/04 15:30:23 zbMFYvPZ
Redhat+Apache 2.0.58にて下記設定をしております。
ServerAliasを利用し、example.netにアクセスした際に
/home/hoge2/public_htmlの内容を表示したいのですが、
/home/hoge1/public_htmlの内容が表示されてしまいます。
→ServerAliasが有効でない?
どのような問題が考えられるでしょうか・・・。
識者の方アドバイス下さい!
http.conf
-----
NameVirtualHost xxx.xxx.xxx.xxx:80
<VirtualHost xxx.xxx.xxx.xxx:80>
DocumentRoot /home/hoge1/public_html
ScriptAlias /cgi-bin/ /home/hoge1/cgi-bin/
ServerName www.example.jp
</VirtualHost>
Include conf/http2.conf
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
-----
http2.conf
-----
<VirtualHost xxx.xxx.xxx.xxx:80>
DocumentRoot /home/hoge2/public_html
ServerName www.example.net:80
ServerAlias example.net:80
ScriptAlias /cgi-bin/ /home/hoge2/cgi-bin/
</VirtualHost>
-----