Forum Moderators: phranque

Message Too Old, No Replies

VirtualHosts for users' custom domains?

How to point outside domains to my site

         

ebloggy

4:42 pm on May 28, 2005 (gmt 0)

10+ Year Member



--------------------------------------------------------------------------------

I own a site that offers users an address [username.mydomain.com...]

How do I allow my users to enable set up Domain Mapping to their address [username.mydomain.com...]

What I would like is to set allow my users to set up a CNAME entry for their domain, such that [theirdomain.com...] would point to [username.mydomain.com...]

What should I do/set up on my server side regarding Apache, short of manually adding a virtualhost for each new domain?

Any help would be greatly appreciated!

jdMorgan

6:33 pm on May 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The answer depends on whether you have a unique IP address for your server, and whether your 'users' have access to their Nameserver definitions.

The simple case is that you point all of their domains to your IP address, use a wildcard servername and set UseCanonicalName to Off, and then use mod_rewrite to rewrite requests for each domain to a subdirectory that corresponds to the requested domain name.

If your users can't use your nameserver or change their own DNS records, then we get into CNAMES and/or 'domain pointing' and other ugly techniques that I don't like to think about.

Jim

ebloggy

10:37 am on May 29, 2005 (gmt 0)

10+ Year Member



I am assuming that this can only be done on a VPS or dedicated server?