C:\xampp2\apache\conf\extra\httpd-vhosts.conf // コメントアウト削除 ##NameVirtualHost *:80 ↓ NameVirtualHost *:80 // 追加 <VirtualHost *:80> DocumentRoot "C:/xampp2/htdocs/dev.hoge.com" ServerName dev.hoge.com ServerAlias www.dev.hoge.com ErrorLog "logs/dev.hoge.com-error.log" CustomLog "logs/dev.hoge.com-access.log" common </VirtualHost> <Directory "C:/xampp2/htdocs/dev.hoge.com"> order deny,allow allow from ALL </Directory> <VirtualHost *:80> DocumentRoot "C:/xampp2/htdocs/fuga.com" ServerName fuga.com ServerAlias www.fuga.com ErrorLog "logs/fuga.com-error.log" CustomLog "logs/fuga.com-access.log" common </VirtualHost> <Directory "C:/xampp2/htdocs/fuga.com"> order deny,allow allow from ALL </Directory>
C:\Windows\System32\drivers\etc\hosts // 追加 127.0.0.1 hoge.com 127.0.0.1 fuga.com