You can use different hostnames for both virtualhosts, and therefore
keep them in port 80.
<VirtualHost *>
ServerName app1
DocumentRoot /path_to_app1/app/webroot/
<Directory />
Allow From all
Order Allow,Deny
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *>
ServerName app2
DocumentRoot /path_to_app2/app/webroot/
<Directory />
Allow From all
Order Allow,Deny
AllowOverride All
</Directory>
</VirtualHost>
Then in /etc/hosts (in windows this is somewhere in c:\windows\ )
127.0.0.1 localhost app1 app2
You can access both apps trough http://app1/ and http://app2/ .
On Oct 5, 12:05 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Oct 5, 3:41 pm, cakenewbie <[EMAIL PROTECTED]> wrote:
>
> > Actually, I am not using the same cake core libs. Both the applications have
> > their individual set of cake folders and these are to be kept separate.
> > What is required though is that when the user goes tohttp://localhost/app1
> > the first application is displayed and when he goes tohttp://localhost/app2
> > the second application is displayed. Now this cannot be achieved if i have
> > my apache document root pointing to the webroot of app1 because in that case
> > it will only displayhttp://localhost/app1andnothttp://localhost/app2.
> > Using virtual host i can have both applications on different ports, but is
> > there a way to have them on the same port (80) while keeping both the
> > application cake directory structures intact??
>
> Maybehttp://www.ad7six.com/MiBlog/ProductionSetupRevisited
>
> will help.
>
> AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---