前提・実現したいこと
ドキュメントルートを変更したいです。
vagrant(ubuntu)にapache2をインストールしデフォルトページの表示まで行うことができました。
ドキュメントルートの変更を行うためとsites-availableのDocumentRootの変更
とapache2.confに以下のように変更しました。
その後apacheを再起動させ確認しましたが表示はデフォルトページのままです。
該当のソースコード
# <Directory /var/www/> # Options Indexes FollowSymLinks # AllowOverride None # Require all granted #</Directory> <Directory /home/vagrant/workspace/portfolio> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
000
1ServerAdmin webmaster@localhost 2DocumentRoot /home/vagrant/workspace/portfolio 3
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/21 22:16
2019/07/21 22:19
2019/07/21 22:21
2019/07/22 11:59