Forum Moderators: phranque

Message Too Old, No Replies

How to use two servers for wildcard subdomain?

When different subdomains are hosted in different servers

         

ebloggy

4:06 am on Oct 12, 2004 (gmt 0)

10+ Year Member



I have set up my DNS, such that *.mydomain.com points to my server. When users on my site signs up for an account, they get username.mydomain.com

From my server, a .htaccess file would redirect the username.mydomain.com to www.mydomain.com/username/

However, when the time comes that I start running out of disk space on one server, I would add another server (perhaps for load balancing to). How should I go about configuring my DNS/.htaccess so that when a subdomain is typed in, Apache knows which server to retrieve the user's files from?

Thanks in advance.

[edited by: ebloggy at 5:05 am (utc) on Oct. 12, 2004]

jdMorgan

4:53 am on Oct 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apache mod_proxy could be used to let another server handle some of those requests.

Jim