View previous topic :: View next topic |
Author |
Message |
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Sep 28, 2005 8:40 pm Post subject: [apache2 vhost] Probleme avec vhost.conf [Résolu] |
|
|
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 |
|
|
marvin rouge Veteran
Joined: 01 Aug 2004 Posts: 1422 Location: Villa Lumierrante, Zonelibre
|
Posted: Thu Sep 29, 2005 6:08 am Post subject: |
|
|
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 |
|
|
Starch Guru
Joined: 26 Feb 2003 Posts: 539 Location: Rennes, France
|
Posted: Thu Sep 29, 2005 9:06 am Post subject: |
|
|
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 |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Thu Sep 29, 2005 4:07 pm Post subject: |
|
|
jai resolu mon probleme finalement.
Il fallait que je fasse un
Include /etc/apache2/conf/vhost/vhost.conf
dans http.conf |
|
Back to top |
|
|
Starch Guru
Joined: 26 Feb 2003 Posts: 539 Location: Rennes, France
|
Posted: Fri Sep 30, 2005 9:55 am Post subject: |
|
|
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 |
|
|
|