Windows 7でWAMPを使用しています
zf2-tutorial.localhost のエイリアスを作成し、drivers/etc/hosts に追加しました。また、以下の仮想ホスト設定を有効にしました。
Include conf/extra/httpd-vhosts.conf
これに従って、このファイルにエイリアスを設定しました
<VirtualHost *:80>
ServerName zf2-tutorial.localhost
DocumentRoot /path/to/zf2-tutorial/public
SetEnv APPLICATION_ENV "development"
<Directory /path/to/zf2-tutorial/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
zf2-tutorial.localhost を開くと、期待どおりに zend ページが表示されます。しかし、localhost ページを開こうとすると、次のように表示されます。
Forbidden
You don't have permission to access / on this server.
httpd.conf で仮想ホストを無効にすると、localhost を開くことができますが、zf2-tutorial.localhost を開くことができません。