1 |
ok |
2 |
|
3 |
in 00_default you need somethink like this |
4 |
|
5 |
<VirtualHost __default__:80> |
6 |
ServerName localhost |
7 |
DocumentRoot /var/www/localhost |
8 |
<Directory /var/www/localhost> |
9 |
Order Allow, Deny |
10 |
Allow from all |
11 |
</Directory> |
12 |
</VirtualHost> |
13 |
|
14 |
and in 01_helpermaster |
15 |
<VirtualHost *:80> |
16 |
ServerName helpermaster.fr |
17 |
ServerAlias *.helpermaster.fr |
18 |
DocumentRoot /var/www/helpermaster.fr |
19 |
<Directory /var/www/helpermaster.fr> |
20 |
Order Allow, Deny |
21 |
Allow from all |
22 |
</Directory> |
23 |
</VirtualHost> |
24 |
|
25 |
It should work ! |
26 |
|
27 |
-----Message d'origine----- |
28 |
De : Elyahou ITTAH [mailto:ittah.elyahou@×××××.com] |
29 |
Envoyé : dimanche 9 mars 2008 20:15 |
30 |
À : gentoo-user@l.g.o |
31 |
Objet : Re: [gentoo-user] Fwd: apache vhost issue... |
32 |
|
33 |
2008/3/9, Mike Williams <mike@××××××××.uk>: |
34 |
> On Sunday 09 March 2008 11:52:16 Elyahou ITTAH wrote: |
35 |
> > in /etc/conf.d/apache2: |
36 |
> > APACHE2_OPTS="-D DEFAULT_VHOST -D SSL -D INFO -D LANGUAGE -D PHP5 -D |
37 |
> > USERDIR" |
38 |
> |
39 |
> |
40 |
> > # cat /etc/apache2/vhosts.d/01_vhost1.conf |
41 |
> > <VirtualHost *:80> |
42 |
> |
43 |
> |
44 |
> > But when I type helpermaster.fr on my browser, i receive the |
45 |
> > www/localhost pages and no the www/helpermaster.fr pages... |
46 |
> |
47 |
> |
48 |
> Your vhost isn't specific enough to not be matched by the vhost defined by |
49 |
> DEFAULT_VHOST (which is _default_:80). |
50 |
> |
51 |
> Either turn off DEFAULT_VHOST and add "Listen *:80" somewhere before your |
52 |
> virtualhost, or define it with an IP address. |
53 |
|
54 |
I tried that but i have now |
55 |
Forbidden |
56 |
|
57 |
You don't have permission to access / on this server. |
58 |
|
59 |
when i trie to connect... |
60 |
-- |
61 |
gentoo-user@l.g.o mailing list |
62 |
|
63 |
|
64 |
-- |
65 |
gentoo-user@l.g.o mailing list |