Hello, it is necessary to configure two things:

1. that your domain redirects the subdomains to the IP
that you want. => DNS serverç

domain.com => IP 213.139.27.144
subdomain1.domain.com => IP 213.139.27.144
subdomain2.domain.com => IP 213.139.27.144
mail.domain.com => IP 213.139.27.58
....

2. Configuring apache/virtualhost for running the subdomains =>
/etc/apache2/site-avaible|site-enable

Virtualhost Example:

<VirtualHost *>
        ServerAdmin [EMAIL PROTECTED]

        ServerName subdomain.domain.com

        DocumentRoot /home/domain/subdomain

        ErrorDocument 401 /error/401-authorization.html
        ErrorDocument 403 /error/403-forbidden.html
        ErrorDocument 404 /error/404-file-not-found.html
        ErrorDocument 500 /error/500-internal-server-error.html

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        #ErrorLog /var/log/apache2/error.log
        ErrorLog /home/domain/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        #CustomLog /var/log/apache2/access.log combined
        CustomLog /home/domain/apache2/access.log combined
env=!image-request
        ServerSignature On

</VirtualHost>


2007/4/29, ericc59 <[EMAIL PROTECTED]>:
>
>
> I have a cake app installed in the root folder, and this works
> perfectly.  I created a few subdomains where I would like to install
> more cake apps for different sites I am working on.
>
> What can I add to the .htaccess of the root cake app to allow browsers
> to access the subdomains?  i.e. If I had the subdomain
> http://subdomain.mysite.com
> pointing to /www/public_html/subdomain.
>
> Thanks,
> Eric
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to