You can setup Apache to accept multiple domains/subdomains for a virtual host.
You will need to setup apache to use virtual hosts, read the Apache documentation here: http://httpd.apache.org/docs/2.0/vhosts/name-based.html Then you can set up a virtual host with your base domain name and add an alias with a subdomain wildcard. Something like this: ServerName domain.tld ServerAlias *.domain.tld After that, use mod_rewrite rule to rewrite the URL and append the subdomain to your URL's before it is passed to Cake rewrite rules. By the way, Apache can't just accept subdomains by itself, you will still need to have the DNS entries for the sub domains set up correctly. So in order for you to be able to create users on the fly you will need a DNS server that can either accept the *.domain.tld wildcard and return the correct entry or have some other method to set the entry automatically for each <username>.domain.tld Hope this helps. - barduck On Mar 6, 8:09 pm, "phirschybar" <[EMAIL PROTECTED]> wrote: > This is probably just an apache question but I figure somebody in the > group would know the answer... > > My app needs to work so that username.appdomain.com maps to > appdomain.com/username/controller/action/.. > > Is this a simple apache setup trick? > > Users need to be able to create accounts themselves so I cannot do > manual httpd.conf edits for each user... > > Thoughts? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
