I just started developing a new app using the lastest 1.2 source. The old way I used to do things was to untar a fresh instance of cake into /var/www and then rename it something like www.sitename.com. I would the setup a VirtualHost directive in Apache and point DocumentRoot to /var/www/www.sitename.com/
I asked myself why am I keeping multiple copies of cake on the server when I could do something like: /var/www/cake/ /var/www/cake/site1 /var/www/cake/site2 /var/www/cake/site3 /var/www/cake/cake /var/www/cake/docs /var/www/cake/vendors And then point the VirtualHost DocumentRoot to /var/www/cake/site2 So I baked a new app: $ php cake/console/bake.php -app site2 This copied the skeleton over and made the directory for me and I set out to build. Eveything worked except now when I click a link to an action, instead of directing the browser to: /controler/action It goes to: /webroot/controler/action If I rename site2 -> app and then point the Document root to /var/www/ cake and let the .htaccess file there take over it works without / webroot in the URL. How can I have multiple apps in my cake dir and not have /webroot in the URL? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
