Customized Subdomain

Customized Subdomain

Posted by: Dazmogan
Posted on: 2009-09-19 03:15:00

Hi there,

What I need is something like cloaking but without the ugly frame stuff. I would like my visitor redirected from foobar.dazmogan.com to dazmogan.com/foobar without a change in the adress bar. A vhost file would look like this:

<VirtualHost *>
ServerName foobar.dazmogan.com
DocumentRoot /home/dazmogan/dazmogan.com/foobar
</VirtualHost>

Is this possible with dreamhost / the panel? I could not find a way to do this.

Regards

Re: Customized Subdomain

Posted by: sdayman
Posted on: 2009-09-19 06:16:00

This comes up often, so a search should bring up something.

The example you cite is very similar to setting up a Fully Hosted subdomain where you specify the DomainRoot you mention as the web directory. I've not tried this, so I hope it works.

-Scott

Re: Customized Subdomain

Posted by: sXi
Posted on: 2009-09-19 08:19:00

Panel > Domains > Manage Domains > Add New Domain / Sub-Domain

Domain to host: foobar.dazmogan.com

Run this domain under the user: dazmogan

Web directory: /home/dazmogan/dazmogan.com/foobar


^ What Scott said.





How To Install PHP.INI / ionCube on DreamHost

Re: Customized Subdomain

Posted by: erikba
Posted on: 2009-09-19 16:24:00

Lol, that would work. There is no "redirection" involved in this case, you are just stating that one domain's files are stored in a subdirectory of the other. Nothing to cloak or hide in this case and the user may never know the difference.

Re: Customized Subdomain

Posted by: Dazmogan
Posted on: 2009-09-19 20:04:00

Perfect! :)

Tags: subdomainfoobar