Tuesday, March 29, 2011

Re: Wildcard DNS | Domain | Subdomain

On Mar 29, 2011, at 06:00, Daniel S. Reichenbach wrote:

> Have you properly configured your <VirtualHost ... /> settings inside
> Apache? You need one virtual host for domain.com, and one to be used
> for any name using *.domain.com, and *both have to point to the same
> DocumentRoot*.

No reason you can't to both within the same VirtualHost.

<VirtualHost *:80>
ServerName example.com
ServerAlias *.example.com
DocumentRoot /path/to/cakephp/app
...
</VirtualHost>

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: