LoginSignup
6
6

More than 5 years have passed since last update.

httpのドキュメントルートディレクトリを変更する方法

Last updated at Posted at 2015-07-12

目的:
ドキュメントルートディレクトリを
/var/www/cakephp
に変える


/etc/httpd/conf.d
ここに行って
sudo vim virtualhost.conf
を実行する


<VirtualHost *:80>
        ServerName cakephp.site
        DocumentRoot /var/www/cakephp/
        <Directory /var/www/cakephp/>

                Options All
                Allow from All
                AllowOverride All
        </Directory>
</VirtualHost>

を書き込み、

sudo service httpd restart

とすれば完了

6
6
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
6
6