# ------------------------------------------------------------ # Apache バーチャルホスト設定例 # # フロントコントローラの設置ディレクトリ(web/company/)を DocumentRoot にする構成。 # ルーティング定義はフロントコントローラの設置ディレクトリを起点とした # 相対パスで記述しているため、サブディレクトリ公開時と同じ定義がそのまま動作する。 # アプリケーション側の変更は不要。 # ------------------------------------------------------------ # ============================================================ # 企業情報取得 # ============================================================ ServerName company-overview.example.local DocumentRoot "D:/www/Anpicall/Tools/CompanyOverview/web/company" # .htaccess の設定を有効にする場合 AllowOverride All Require all granted Options -Indexes +FollowSymLinks # .htaccess を使わない場合は AllowOverride None にして、 # 以下のリライト設定をこのブロックへ直接記述する #AllowOverride None #RewriteEngine On #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule ^(.*)$ index.php [QSA,L] # 開発用フロントコントローラと雛形ファイルは公開しない Require all denied ErrorLog "logs/company-overview.example.local-error.log" CustomLog "logs/company-overview.example.local-access.log" combined