Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Apache] - Configuration des VHosts (Résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
sebbb
Guru
Guru


Joined: 08 Oct 2003
Posts: 400
Location: [FR] - Paris

PostPosted: Thu Sep 16, 2004 2:19 pm    Post subject: [Apache] - Configuration des VHosts (Résolu) Reply with quote

Bonjour,
J'ai une IP dynamique, gérée avec dyndns et je voudrais créer des hotes virtuels pour apache (2).

Toutes les requetes sur *.compaq.homelinux.net arrive chez moi et j'ai ça dans /etc/apache2/conf/vhosts/vhosts.conf :
Code:
################# Named VirtualHosts
NameVirtualHost *
<VirtualHost *>
ServerName www.compaq.homelinux.net
DocumentRoot /home/seb/www
</VirtualHost>

<VirtualHost *>
ServerName asco.compaq.homelinux.net
DocumentRoot /home/seb/www/asco
</VirtualHost>


Le prrmier marche (une page index.html à la con pour ceux qui veulent tester...)
Par contre le deuxième marche pas... (c'est la même page que le premier et ça c'est pas normal...)

J'ai oublié quoi ?
_________________
Sebbb

De tous les gens qui n'ont rien à dire,
les plus agréables sont ceux qui se taisent...


Last edited by sebbb on Fri Sep 17, 2004 2:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Piaf
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2003
Posts: 76
Location: Sophia Antipolis

PostPosted: Fri Sep 17, 2004 9:27 am    Post subject: Reply with quote

As tu mis une section de ce genre :

Code:
<Directory /home/seb/www/asco>
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>


dans ton /etc/commonapache2.conf ?
_________________
Est-ce que c'est toi John Wayne, ou est-ce que c'est moi...
Back to top
View user's profile Send private message
broly
Guru
Guru


Joined: 21 Feb 2003
Posts: 345
Location: cachan 94

PostPosted: Fri Sep 17, 2004 10:46 am    Post subject: Reply with quote

chez moi ca ca marche :
Code:

NameVirtualHost mrtg.toto.com:80
<VirtualHost mrtg.toto.com:80>
ServerName mrtg.toto.com
DocumentRoot /var/www/localhost/htdocs/mrtg/
</VirtualHost>
Back to top
View user's profile Send private message
sebbb
Guru
Guru


Joined: 08 Oct 2003
Posts: 400
Location: [FR] - Paris

PostPosted: Fri Sep 17, 2004 2:14 pm    Post subject: Reply with quote

Bon, le problème venait pas de apache mais de dyndns, il faut activer l'option wildcard dans ddclient.conf...

Vala, tout marche bien
_________________
Sebbb

De tous les gens qui n'ont rien à dire,
les plus agréables sont ceux qui se taisent...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum