Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[apache2 vhost] Probleme avec vhost.conf [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
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Sep 28, 2005 8:40 pm    Post subject: [apache2 vhost] Probleme avec vhost.conf [Résolu] Reply with quote

Bonjour,
J'ai un ptit probleme.
JE comprends pas pourkoi mon virtual host ne fonctionne pas. :(
QQun a une idée ? Voici mon fichier vhost.conf

Listen 127.0.0.1:8000
<VirtualHost 127.0.0.1:8000>
ServerName Ruby_development
DocumentRoot /var/www/localhost/htdocs/rails_app/public
ErrorLog /var/www/localhos/htdocs/rails_app/apache.log
<Directory /var/www/localhos/htdocs/rails_app/public>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
_________________
Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering-


Last edited by Walmarde on Thu Sep 29, 2005 4:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
marvin rouge
Veteran
Veteran


Joined: 01 Aug 2004
Posts: 1422
Location: Villa Lumierrante, Zonelibre

PostPosted: Thu Sep 29, 2005 6:08 am    Post subject: Reply with quote

Je dirai qu'il te manque un <IfDefine DEFAULT_VHOST>, ce qui donnerai:
Code:

Listen 127.0.0.1:8000
<IfDefine DEFAULT_VHOST>
<VirtualHost 127.0.0.1:8000>
ServerName Ruby_development
DocumentRoot /var/www/localhost/htdocs/rails_app/public
ErrorLog /var/www/localhos/htdocs/rails_app/apache.log
<Directory /var/www/localhos/htdocs/rails_app/public>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
</IfDefine>


Sinon, mon listen est dans mon httpd.conf

Attention, ma version d'apache c'est 2.0.54-r31, si tu as une version antérieure la conf est pas forcément la même (voir les changements de conf apache sur le site gentoo.org)

+

EDIT: oui, enfin ce que je viens de dire, c'est pour définir un virtual host pa r défaut. Est ce que t'as un message d'erreur quand tu démarres apache ? est - ce que tu as d'autres virtual hosts ?
Back to top
View user's profile Send private message
Starch
Guru
Guru


Joined: 26 Feb 2003
Posts: 539
Location: Rennes, France

PostPosted: Thu Sep 29, 2005 9:06 am    Post subject: Reply with quote

Parce que les fichiers à l'intérieur de /etc/apache2/conf ne sont plus lus.

Maintenant la conf des vhosts est située dans /etc/apache2/vhost.d
_________________
- Vous aurez beau dire... Y'a pas qu'd'la pomme... Y'aurait pas aussi d'la betterave ?
- Si, y'en a aussi
Back to top
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Thu Sep 29, 2005 4:07 pm    Post subject: Reply with quote

jai resolu mon probleme finalement.
Il fallait que je fasse un

Include /etc/apache2/conf/vhost/vhost.conf

dans http.conf
Back to top
View user's profile Send private message
Starch
Guru
Guru


Joined: 26 Feb 2003
Posts: 539
Location: Rennes, France

PostPosted: Fri Sep 30, 2005 9:55 am    Post subject: Reply with quote

Walmarde wrote:
jai resolu mon probleme finalement.
Il fallait que je fasse un

Include /etc/apache2/conf/vhost/vhost.conf

dans http.conf


Oui mais non.
Par souci de propreté tu aurais du faire
Code:

cp /etc/apache2/conf/vhost/vhost.conf /etc/apache2/vhosts.d/<nom pas trop crado>.conf

_________________
- Vous aurez beau dire... Y'a pas qu'd'la pomme... Y'aurait pas aussi d'la betterave ?
- Si, y'en a aussi
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