* [gentoo-user] OT - Need help setting up a name-based virtual host in Apache
@ 2007-02-21 17:28 Michael Sullivan
2007-02-21 22:55 ` Daniel Iliev
0 siblings, 1 reply; 3+ messages in thread
From: Michael Sullivan @ 2007-02-21 17:28 UTC (permalink / raw
To: gentoo-user
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-
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] OT - Need help setting up a name-based virtual host in Apache
2007-02-21 17:28 [gentoo-user] OT - Need help setting up a name-based virtual host in Apache Michael Sullivan
@ 2007-02-21 22:55 ` Daniel Iliev
2007-02-22 8:01 ` Zachary Grafton
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Iliev @ 2007-02-21 22:55 UTC (permalink / raw
To: gentoo-user
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"
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] OT - Need help setting up a name-based virtual host in Apache
2007-02-21 22:55 ` Daniel Iliev
@ 2007-02-22 8:01 ` Zachary Grafton
0 siblings, 0 replies; 3+ messages in thread
From: Zachary Grafton @ 2007-02-22 8:01 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-22 8:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-21 17:28 [gentoo-user] OT - Need help setting up a name-based virtual host in Apache Michael Sullivan
2007-02-21 22:55 ` Daniel Iliev
2007-02-22 8:01 ` Zachary Grafton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox