php:fuelphp:apache_settings

Apacheの設定

  1. バーチャルホストの設定ファイルを作成する。
    $ vi ~/fuelapp/vhosts_fuelapp.conf
    <VirtualHost 127.0.0.1:80>
        DocumentRoot "/Users/tomoyan/fuelapp/public"
        ServerName fuelapp.localhost
        <Directory "/Users/tomoyan/fuelapp/public">
            Order Allow,Deny
            Allow from All
            Options All
            AllowOverride All
            DirectoryIndex index.php index.html
        </Directory>
    </VirtualHost>
  2. Apache の設定ファイルに Include 定義を追加する。
    $ vi httpd.conf
    Include /Users/tomoyan/fuelapp/vhosts_fuelapp.conf
  3. hosts ファイルに設定を追加する。
    $ vi /etc/hosts
    127.0.0.1       fuelapp.localhost
  4. Apache をリロードし http://fuelapp.localhost/ にアクセスして動作を確認する。
  • php/fuelphp/apache_settings.txt
  • 最終更新: 2019/08/19 07:14
  • by ともやん