以下は、/ etc / apache2/sites-availableにある私の仮想ホストです。
<VirtualHost *:80>
DocumentRoot "/var/www/roomstays/public"
ServerName roomstays
#This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "/var/www/roomstays/public">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
また、/ etc / apache2/sites-enabledフォルダーで有効になっています
そして、以下は私のホストファイルです:
127.0.0.1 localhost
127.0.0.1 roomstays
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
var / www/roomstaysでサイトを構成しました。しかし、私がルームステイに入ったとき、サイトを開かず、このメッセージを表示していませんでした:
できます!
これは、このサーバーのデフォルトのWebページです。
Webサーバーソフトウェアは実行されていますが、コンテンツはまだ追加されていません。
仮想ホストの何が問題になっていますか。