Gentoo Archives: gentoo-user

From: Daniel Iliev <danny@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT - Need help setting up a name-based virtual host in Apache
Date: Wed, 21 Feb 2007 23:04:03
Message-Id: 45DCCDE4.1030108@ilievnet.com
In Reply to: [gentoo-user] OT - Need help setting up a name-based virtual host in Apache by Michael Sullivan
1 Michael Sullivan wrote:
2 > I hope this email gets to the list. My last post didn't. This is
3 > semi-urgent. Over the past year I've been developing a PHP-based web
4 > interface for my college's music festival. This web interface would
5 > allow participating directors to enter all their information via the
6 > Internet, rather than having to send it to us and having us do all the
7 > work. The interface is now ready for widespread use (as opposed to the
8 > handful of directors I've had testing it and returning feedback.) The
9 > problem is this: The web address of the interface is
10 > http://camille.espersunited.com/~festival . I want to them to be able
11 > to use http://festival.espersunited.com because it's easier to remember
12 > (some of them don't remember that they have bookmarks.) I created a
13 > file in /etc/apache2/vhosts.d for this:
14 >
15 > camille vhosts.d # cat 01_festival_vhost.conf
16 > <VirtualHost *>
17 > ServerName festival.espersunited.com
18 > DocumentRoot /home/festival/webspace/html
19 > <Directory /home/festival/webspace/html>
20 > Options Indexes FollowSymLinks
21 > Order allow,deny
22 > Allow from all
23 > </Directory>
24 > </VirtualHost>
25 >
26 > >From the information I can find for what I'm trying to do, this seems to
27 > be the correct syntax. I set up a CNAME record in my espersunited.com
28 > DNS configuration to point festival.espersunited.com at
29 > camille.espersunited.com . However, when I reloaded apache2 and went to
30 > http://festival.espersunited.com, instead of seeing the interface
31 > at /home/festival/webspace/html/index.php, I
32 > saw /var/www/localhost/htdocs/index.html . Is something wrong with my
33 > config? Please help!
34 > -Michael Sullivan-
35 >
36 >
37 >
38
39
40 Try to give "festival" an address, not a CNAME and please, send the
41 output of "apachectl configtest"
42
43 --
44 Best regards,
45 Daniel
46
47
48 --
49 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] OT - Need help setting up a name-based virtual host in Apache Zachary Grafton <zachary.grafton@×××××.com>