1 |
Daniel Iliev wrote: |
2 |
> Michael Sullivan wrote: |
3 |
> |
4 |
>> I hope this email gets to the list. My last post didn't. This is |
5 |
>> semi-urgent. Over the past year I've been developing a PHP-based web |
6 |
>> interface for my college's music festival. This web interface would |
7 |
>> allow participating directors to enter all their information via the |
8 |
>> Internet, rather than having to send it to us and having us do all the |
9 |
>> work. The interface is now ready for widespread use (as opposed to the |
10 |
>> handful of directors I've had testing it and returning feedback.) The |
11 |
>> problem is this: The web address of the interface is |
12 |
>> http://camille.espersunited.com/~festival . I want to them to be able |
13 |
>> to use http://festival.espersunited.com because it's easier to remember |
14 |
>> (some of them don't remember that they have bookmarks.) I created a |
15 |
>> file in /etc/apache2/vhosts.d for this: |
16 |
>> |
17 |
>> camille vhosts.d # cat 01_festival_vhost.conf |
18 |
>> <VirtualHost *> |
19 |
>> ServerName festival.espersunited.com |
20 |
>> DocumentRoot /home/festival/webspace/html |
21 |
>> <Directory /home/festival/webspace/html> |
22 |
>> Options Indexes FollowSymLinks |
23 |
>> Order allow,deny |
24 |
>> Allow from all |
25 |
>> </Directory> |
26 |
>> </VirtualHost> |
27 |
>> |
28 |
>> >From the information I can find for what I'm trying to do, this seems to |
29 |
>> be the correct syntax. I set up a CNAME record in my espersunited.com |
30 |
>> DNS configuration to point festival.espersunited.com at |
31 |
>> camille.espersunited.com . However, when I reloaded apache2 and went to |
32 |
>> http://festival.espersunited.com, instead of seeing the interface |
33 |
>> at /home/festival/webspace/html/index.php, I |
34 |
>> saw /var/www/localhost/htdocs/index.html . Is something wrong with my |
35 |
>> config? Please help! |
36 |
>> -Michael Sullivan- |
37 |
>> |
38 |
>> |
39 |
>> |
40 |
>> |
41 |
> |
42 |
> |
43 |
> Try to give "festival" an address, not a CNAME and please, send the |
44 |
> output of "apachectl configtest" |
45 |
> |
46 |
> |
47 |
An A record would definitely be the best for this situation. I also saw |
48 |
that you were using apache2, you might want to try apache2ctl -S to |
49 |
check the syntax of the configuration files and see if apache is |
50 |
recognizing it as a virtual host. The configtest option only tells you |
51 |
if the syntax is OK, but doesn't provide other information. The -S |
52 |
option will give you a basic rundown of the virtual host configuration. |
53 |
You might want to try posting this to the apache users mailing list. |
54 |
You can find it at http://httpd.apache.org/lists.html |
55 |
|
56 |
Other than that, it looks good for the small section of the config file |
57 |
that you posted. |
58 |
|
59 |
|
60 |
Good Luck, |
61 |
|
62 |
Zack |
63 |
-- |
64 |
gentoo-user@g.o mailing list |