1 |
Haim, |
2 |
|
3 |
Thanks for the help. That is now working :-D |
4 |
|
5 |
Haim Ashkenazi wrote: |
6 |
|
7 |
>On Sat, 2006-03-11 at 10:33 +0000, Tito Valentin wrote: |
8 |
> |
9 |
> |
10 |
>>Hello All, |
11 |
>> |
12 |
>>I am trying to get apache to work with a few vhost. The problem is that |
13 |
>>when I hit www.domain.com it shows the apache page rather than the |
14 |
>>actual site. In order for me to be able to view the site I have to type |
15 |
>>www.domain.dom/folder and then the site comes up. Here is what I have |
16 |
>>done so far with the vhost.conf files: |
17 |
>> |
18 |
>>Apache2 on Gentoo |
19 |
>> |
20 |
>>/etc/apache2/httpd.conf |
21 |
>> Include vhosts.d/00_default_vhost.conf |
22 |
>> Include vhosts.d/01_my_domain_vhost.conf |
23 |
>> |
24 |
>>/etc/conf.d/apache2 |
25 |
>> -D DEFAULT_VHOST (plus ssl and other) |
26 |
>> |
27 |
>>/etc/apache2/vhosts.d/00_default_vhost.conf |
28 |
>> Default file with new domain information. |
29 |
>> |
30 |
>>/etc/apache2/vhosts.d/01_my_domain_vhost.conf |
31 |
>> <VirtualHost www.my_domain.com> |
32 |
>> ServerAdmin webmaster@my_domain.com |
33 |
>> DocumentRoot /var/www/localhost/htdocs/parknorthcondos |
34 |
>> DirectoryIndex index.php index.html |
35 |
>> ServerName www.my_domain.com |
36 |
>> ErrorLog /var/log/apache2/vhosts/my_domain_error_log |
37 |
>> CustomLog /var/log/apache2/vhosts/my_domain_access_log common |
38 |
>> </VirtualHost> |
39 |
>> |
40 |
>> |
41 |
>HI |
42 |
> |
43 |
>you have to have "NameVirtualHost *:80" before the first virtual host. |
44 |
>then the VirtualHost directive should be as follow: |
45 |
><VirtualHost *:80> |
46 |
> ServerName www.mydomain.com |
47 |
> ... |
48 |
></VirtualHost> |
49 |
> |
50 |
>you have to do the same with ':443' if you want SSL virtual hosts. |
51 |
> |
52 |
>the above instructions are for VirtualHosts running on the same IP. if |
53 |
>you want to run each virtual host on a separate IP you have to discard |
54 |
>the 'NameVirtualHost' directive and replace the '*' with ipaddress in |
55 |
>the 'VirtualHost' directive. |
56 |
> |
57 |
>Bye |
58 |
> |
59 |
> |
60 |
>>I just want to be able to hit www.my_domain.com and able to see my site |
61 |
>>instead of the apache splash page. |
62 |
>> |
63 |
>>Any help is greatly appreciated. |
64 |
>> |
65 |
>>Thanks, |
66 |
>>Tito |
67 |
>> |
68 |
>> |
69 |
-- |
70 |
gentoo-user@g.o mailing list |