1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vmにIt works! を表示する。

Last updated at Posted at 2021-08-02

vmに
http://192.168.33.10/index.html
It works! を表示するには?

vm

・vagrantファイルいじらないと
192.168.33.10が見れない。
ネットワーク通っていないことになる。
・ vagrantファイルを編集したら、vagrant reload 読み込みし直す。
・ ifconfig でinet 192.168.33.10 が出ていることを確認する。

apache2

・インストールする。
・apache2起動を確認する。
起動していなければ、見れない。
$ ps aux | grep apache2
・ドキュメントルート、見る場所を設定する。
/etc/apache2/sites-available$ vi 000-default.conf ファイルに、

<Directory "/var/www/html">
 AllowOverride All
</Directory>

追加。
・設定ファイルをいじったら、sudo service apache2 restart 再起動する。
・/var/www/html にファイルなんかあることを確認する。

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?