From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HK94s-0008E9-3g for garchives@archives.gentoo.org; Thu, 22 Feb 2007 08:13:22 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l1M8BUJ2008321; Thu, 22 Feb 2007 08:11:30 GMT Received: from mail.severant.com (pool-71-121-72-79.eriepa.dsl-w.verizon.net [71.121.72.79]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l1M81guI026241 for ; Thu, 22 Feb 2007 08:01:42 GMT Received: from [192.168.2.100] (pool-71-121-76-141.eriepa.dsl-w.verizon.net [71.121.76.141]) by mail.severant.com (Postfix) with ESMTP id 5D75725922 for ; Thu, 22 Feb 2007 00:04:38 -0500 (EST) Message-ID: <45DD4DE2.9010805@gmail.com> Date: Thu, 22 Feb 2007 03:01:38 -0500 From: Zachary Grafton User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT - Need help setting up a name-based virtual host in Apache References: <1172078911.11148.17.camel@camille.espersunited.com> <45DCCDE4.1030108@ilievnet.com> In-Reply-To: <45DCCDE4.1030108@ilievnet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 3e9551b4-aff1-4f8a-a8b5-a8f105f6caa4 X-Archives-Hash: 484650e9e7789f520ca0a9f36c88480f Daniel Iliev wrote: > Michael Sullivan wrote: > >> I hope this email gets to the list. My last post didn't. This is >> semi-urgent. Over the past year I've been developing a PHP-based web >> interface for my college's music festival. This web interface would >> allow participating directors to enter all their information via the >> Internet, rather than having to send it to us and having us do all the >> work. The interface is now ready for widespread use (as opposed to the >> handful of directors I've had testing it and returning feedback.) The >> problem is this: The web address of the interface is >> http://camille.espersunited.com/~festival . I want to them to be able >> to use http://festival.espersunited.com because it's easier to remember >> (some of them don't remember that they have bookmarks.) I created a >> file in /etc/apache2/vhosts.d for this: >> >> camille vhosts.d # cat 01_festival_vhost.conf >> >> ServerName festival.espersunited.com >> DocumentRoot /home/festival/webspace/html >> >> Options Indexes FollowSymLinks >> Order allow,deny >> Allow from all >> >> >> >> >From the information I can find for what I'm trying to do, this seems to >> be the correct syntax. I set up a CNAME record in my espersunited.com >> DNS configuration to point festival.espersunited.com at >> camille.espersunited.com . However, when I reloaded apache2 and went to >> http://festival.espersunited.com, instead of seeing the interface >> at /home/festival/webspace/html/index.php, I >> saw /var/www/localhost/htdocs/index.html . Is something wrong with my >> config? Please help! >> -Michael Sullivan- >> >> >> >> > > > Try to give "festival" an address, not a CNAME and please, send the > output of "apachectl configtest" > > An A record would definitely be the best for this situation. I also saw that you were using apache2, you might want to try apache2ctl -S to check the syntax of the configuration files and see if apache is recognizing it as a virtual host. The configtest option only tells you if the syntax is OK, but doesn't provide other information. The -S option will give you a basic rundown of the virtual host configuration. You might want to try posting this to the apache users mailing list. You can find it at http://httpd.apache.org/lists.html Other than that, it looks good for the small section of the config file that you posted. Good Luck, Zack -- gentoo-user@gentoo.org mailing list