7
6

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 5 years have passed since last update.

仮想ディレクトリの設定

Last updated at Posted at 2014-06-07

仮想ディレクトリの設定
Apache上で仮想ディレクトリを設定する際は、httpd.confに対して、以下の設定を行う。

apache2.4未満の場合

/etc/apache2/httpd.conf
Alias /~VirtuslDir/ /VirtualDir/

<Directory “/VirtualDir”>
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

apache2.4の場合

/etc/apache2/httpd.conf
Alias /~VirtuslDir/ /VirtualDir/

<Directory “/VirtualDir”>
    AllowOverride None
    Options None
    Require all granted
</Directory>
  • Yosemiteからapacheのバージョンが2.4へとバージョンアップしているので、適時 httpd.confの設定も書き換えておくこと。

httpd.confを変更した後は

Apacheの再起動を行う必要がある。

$ sudo apachectl restart
7
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
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?