LoginSignup
1
2

More than 3 years have passed since last update.

Mac OSのDocumentRoot変更方法

Last updated at Posted at 2019-03-09

DocumentRootを変えるたび、
httpd.confのありかを調べてたり、su -をやり忘れたり...
だったので、備忘録としてまとめておきます。

Documentroot編集方法

  • apacheを起動
sudo apachectl start
  • rootユーザーになる
su -
  • viでhttpd.confを開く
vi /etc/apache2/httpd.conf
  • DocumentRootを探す
    次の検索候補に進む場合は、Nを押す
/DocumentRoot
  • 修正したら完了
:wq
  • apacheを再起動
apachectl restart
1
2
0

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
2