Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

virtual virtual domains

Status
Not open for further replies.

esromneb

Programmer
Mar 30, 2002
76
US
Hi, I run a web hosting company, and I'm trying to write a webpage that will allow access to domains before dns has updated. Such as: if I buy a domain, add it using webmin - virtual servers, and then want to edit it immediatly before the dns updates. Before I just had a directory of symlinks to the different public_html/ dirs. The problem with this is: my admin domain is:
admindomain.com

so if I visited
admindomain.com/~newdomain/

some pages don't dislpay correctly, and images and such don't work sometimes.

Would there be a way for me to accomplish this task by using:
newdomain.admindomain.com
?

That way if an image was src="/logo.jpg" it would display.

I have apache and bind both configured with wildcards, so now I need to setup a sym link system.

Is there a way I can use php to accomplish this task? Or do I have to make a virtual server in apache for every virtual virtual domain? thanks for your input
-ben
 
Don't use absolute URLs.

But, yes. Out company puts up new customers as newcustomer.outdomain.com and virt_host's the hostname over there.
 
Do you know how that service is accomplished? Is it configured in httpd.conf? Or is there some other trick? Thanks
-ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top