Adwin - there are two parts to this. One is to set up wilcard DNS (or
hosts file) so that the client request abcdef.yourdomain.com goes to
the right server. The second part is on your server, setting up your
webserver to accept these wildcard requests.
If you have a domain and file hosting with a provider, they should be
able to set up both parts. If you are testing on your own computer
then you probably aren't using DNS at all - which is why you need to
modify the hosts file instead (a very simple version of DNS).
127.0.0.1 yourdomain.com
127.0.0.1 abc.yourdomain.com
127.0.0.1 def.yourdomain.com
etc...
But you do still have to set up your webserver to accept wilcard
subdomains - e.g:
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias *.yourdomain.com
<Directory /var/www/html/yourdomain.com>
Options FollowSymLinks MultiViews IncludesNOEXEC
AllowOverride All
</Directory>
DocumentRoot /var/www/html/yourdomain.com/app/webroot
DirectoryIndex index.php index.html
</VirtualHost>
and any wildcard subdomain requests should go to your app ok. You do
need to restart Apache after adding the above to your httpd.conf.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---