0
0

apatchのルート(DocumentRoot)切り替え

Posted at

デフォルトでは\var\www\html

手順

/etc/httpd/conf/httpd.conf を下記の様に変更
ファイルをviで編集

vi /etc/httpd/conf/httpd.conf

中身

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

/var/www/htmlの「html」を任意に変更する
保存して終了


apatchの再起動

systemctl restart httpd
0
0
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
0
0