2013年6月6日木曜日

VirtualHostの設定・フォルダ飛ばし

test.hogehoge.netのhtmlを直接見に行かせる。
この場合、folder2のディレクトリにindex.htmlなどを入れてテストした。

<VirtualHost *:80>
 DocumentRoot /var/www/html/hogehogefolder/folder1/folder2
 ServerName hogehoge.com
 ServerAlias test.hogehoge.net
 Options FollowSymLinks ExecCGI
</VirtualHost>

フォルダ飛ばせていいかんじー
NameVirtualHost *:80がコメントアウト#になってるからはずすね。

0 件のコメント:

コメントを投稿