[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] browse virtual site via IP and email storage?
- Subject: Re: [cobalt-users] browse virtual site via IP and email storage?
- From: Ken Marcus - Precision Web Hosting <ken@xxxxxxxxxxxxxxxx>
- Date: Thu Mar 22 15:46:44 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Thu, 22 Mar 2001, Fred McKinnon wrote:
>
> 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?
A while back someone posted this idea which works well for me:
1. Create a directory named "preview" somewhere like
/home/sites/home/web/preview
2. Put an .htaccess file in it containing the following lines:
RewriteEngine on
RewriteBase /Preview
RewriteRule ^www\.([^/]+)$ /Preview/www.$1/ [L,R]
RewriteRule ^www\.([^/]+)(/(.*))? http://www.$1/$3 [P]
You can now preview sites using the url below:
http://www.yourservername.com/preview/www.yourcustomersdomain.com/
---------
Ken Marcus
ken@xxxxxxxxxxxxxxxx
http://precisionweb.net
Precision Web Hosting
2210 East Vista Way Suite 5
Vista, California 92084