Forum Moderators: phranque
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!
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