* XAMPP + PHPStorm [#ufde1548]
**  httpd-vhosts.conf [#hedf4d26]
バーチャルホストの設定。C:\xampp\apache\conf\extra\httpd-vhosts.conf を開く。一番最後に次を加える。

```ini
NameVirtualHost *:80

<VirtualHost *:80>
  DocumentRoot "C:/xampp/htdocs"
  ServerName localhost
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot "C:\Users\fifi\Dropbox\10_GitRepository\weddingmovie.fififactory.com"
  ServerName wp.localhost
  <Directory "C:\Users\fifi\Dropbox\10_GitRepository\weddingmovie.fififactory.com">
    Order allow,deny
    Allow from all
    Require all granted
  </Directory> 
</VirtualHost>
```

** hosts [#peb5aadc]
C:\Windows\System32\drivers\etc\hosts を開く。
最後に次を加える。
```xml+velocity
127.0.0.1 localhost
127.0.0.1 wp.localhost
```
C:\Users\fifi\Dropbox\10_GitRepository\weddingmovie.fififactory.comに <?php phpinfo() ?> だけを書いた index.php を置いて、Apache を起動したら http://wp.localhost にアクセスしてちゃんと表示されるか確認。

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS