【发布时间】:2013-07-26 07:42:14
【问题描述】:
在 cakephp 中,我想将 localhost 重定向到 app2,将 client1.localhost 重定向到 app1。 相反,两者都重定向到 app1。
我的 httpd-vhost 定义为:
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot "D:\wamp\www\cakephp\app2\webroot\
ServerName localhost
</VirtualHost>
<VirtualHost www.myhost>
DocumentRoot "D:\wamp\app1\webroot"
ServerName client1.localhost
ServerAlias client1.localhost
<Directory "D:\wamp\app1\webroot">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
【问题讨论】:
-
你用的是什么版本的蛋糕?
-
我使用的是 cakephp 1.3
标签: apache cakephp localhost wamp