[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] browse virtual site via IP and email storage?



> > 1)  It there ANY URL or way for a user to browse their
> > site via the web *BEFORE* their domain is activated
> > and pointed in DNS?  I know if they are the only site
> > on an IP, they can just go to http://IPADDRESS, but
> > for a virtual site (named site) that is sharing an IP,
> > but the domain isn't pointing yet . . anything they
> > can do?
>
> One method, I haven't tried, would be to point a sub-domain of your domain
> to that directory via an "include.conf" file. Then the customer
> could go to
> customername.yourdomain.com to view their site.


Another way that requires a one off change to httpd.conf is :

add the following line into the config for one of your domains:

AliasMatch ^/usersites/([^/]+)(/(.*))? /home/sites/$1/web/$3

and restart httpd

from then on you will be able to access any domain prior to propogation to
view it by :

www.original.domain/usersites/www.newdomain.com

works a treat

cheers

Jim Carey