ローカルのxamp環境でサブドメインを使う
忘れそうなのでメモ
xamp/apache/conf/extra/httpd-vhosts.confにVirtualHost追加
<VirtualHost *:80> DocumentRoot "D:/xampp/htdocs/hogehoge" #プロジェクトの場所 ServerName hoge.localhost ServerAlias hoge.localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "D:/xampp/htdocst" ServerName localhost ServerAlias localhost </VirtualHost>
apache再起動
終わり。