バーチャルホストの設定 - 肉になるメモ
http://d.hatena.ne.jp/kazumeat/20120130/1327918879
・/etc/httpd/con.d 以下にアプリ用のconfを作成
NameVirtualHost 192.168.1.111:80
#
# app1
#
<VirtualHost 192.168.1.111:80>
DocumentRoot /var/www/app1
ServerName app1.com
ErrorLog logs/app1_error_log
CustomLog logs/app1_access_log common
<Directory "/var/www/app1">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
#
# app2
#
<VirtualHost 192.168.1.111:80>
DocumentRoot /var/www/app2
ServerName app2.com
ErrorLog logs/app2_error_log
CustomLog logs/app2_access_log common
<Directory "/var/www/app2">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
・ローカルのhostsファイル設定
C:\Windows\System32\drivers\etc\hosts
192.168.1.111 app1.com 192.168.1.111 app2.com