Hi folks, I'm seeking a quick consultation from anyone who has set up httpd.conf to serve multiple VirtualHosts. I've RTFM'ed and I'm clearly just missing something that I suspect someone who has done this before can point out.

This is probably in the area of exactly what is supposed to be on the NameVirtualHost, VirtualHost, and ServerName directives as well as what might go into /etc/hosts.

If someone out there has time for a quick 5-10 minute phone call, I'd really appreciate it. Please e-mail me off list.

Thanks much, Steve
posted by:
  • <VirtualHost 10.0.0.1>
    ServerName www.abc.dom
    ServerAdmin webgirl@abc.dom
    DocumentRoot /www/abc
    </VirtualHost>

    When you define the Virtual Host replace 10.0.0.1 with the ip you want the server to listen to for the virtual host. You will also want to make sure you define it with the Listen Directive pointing it to the ip as well as any others needed.

    ServerName you define with the address of the virutal host..you can also use *.abc.com to catch all sub-domains of the domain.

    DocumentRoot is where the virtual host is located on the server..the files to be hosted.

    Hope that proves helpfull.

Recent topics in "Apache Web servers"

Topic Author Replies Last Post
New mac dev help needed jedi 1 August 11, 2007
can you be on call for this server and make some easy cash? 0 June 13, 2007
hosting reliability and live support 4 February 10, 2007
mySQL nat 2 November 29, 2006