別ポートでVirtual Hostを設定してCakePHPを運用する場合の注意点
ポート:8080
VirtuakHost用ドキュメントルート:/var/www/html2
VirtuakHost用のCakePHP:cakephp2
として
httpd.confで
1.ポート番号
→ Listen 8080
2.Virtual Host用に
→
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
3.Virtual Host設定
→
DocumentRoot /var/www/html2
ServerName URL:8080
4.VirtuakHost用のCakePHPをサーバに展開
5.VirtuakHost用ドキュメントルート上のindex.phpでROOTを設定
→
define('ROOT', dirname(dirname(__FILE__)) . DS. 'cakephp2');