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
<VirtualHost *>
ServerName festival.espersunited.com
DocumentRoot /home/festival/webspace/html
<Directory /home/festival/webspace/html>
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
>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