Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'd like to dynamically be able to host client's domains, with just having to provide them instructions like this: http://www.tumblr.com/docs/en/custom_domains

I'm running a pretty typical LAMP stack; any good tutorials for configuring this for Apache, or other server-side configurations I need to be aware of?

share|improve this question
    
possible duplicate of Dynamic Virtual Hosts In Apache –  John Gardeniers May 28 '10 at 5:09

1 Answer 1

Apache supports virtual host configuration. There is plenty of information on how to set this up available at http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html and http://httpd.apache.org/docs/2.0/vhosts/mass.html. Just set this up in Apache with a dedicated IP address, then tell your clients to set their DNS records to point to the IP address in question. Their folder names on the server will need to match their domain name (or other matching criteria per the first link above).

With Tumblr, they likely have a single application running on the specified IP address which determines which site settings to use based on a CGI variable (server_name, usually). If each of your customer sites will be using their own webroot, then the Apache configuration should work for you. If you're hosting an application that they're all using, then you can have Apache listen for all requests on a dedicated IP address and then differentiate them within the application through the CGI variable.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.