logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 05-03-2017 10:05:07

dika
Membre
Inscription : 05-03-2017

Apache 3 serveurs virtuels mais affiche l'index.html par défaut

bonjour,

debian 8.4 chez OVH soyoustart, fresh reinstal
Apache 2 latest

j'ai fait le tuto
https://debian-administration.org/artic … th_Apache2

pour avoir 3 domaines/sites sur le serveur
ota.pe
ota.foundation
otane.org

mais en fait l'index.htm est toujours celui par défaut le :  Main DocumentRoot: "/var/www/html"
je n'arrive pas a voir pourquoi ca pointe pas sur mes différents dossiers,


si je fais :

apachectl -S

j'ai :

:VirtualHost configuration:
*:80                   ota.pe (/etc/apache2/sites-enabled/000-default.conf:1)
*:*                    is a NameVirtualHost
         default server www.ota.foundation (/etc/apache2/sites-enabled/www.ota.foundation.conf:4)
         port * namevhost www.ota.foundation (/etc/apache2/sites-enabled/www.ota.foundation.conf:4)
                 alias ota.foundation
         port * namevhost www.ota.pe (/etc/apache2/sites-enabled/www.ota.pe.conf:4)
                 alias ota.pe
         port * namevhost www.otane.org (/etc/apache2/sites-enabled/www.otane.org.conf:4)
                 alias otane.org
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33



donc il apache a l'air de bien prendre mes virtualhost, mais pourquoi il ne prends pas les chemins d'accès des fichiers ?? et garde celui par défaut.
merci de votre aide, je sais pas trop où regarder, je suis nOOb en debian, sorry

Edit à toto :
Mis au clair avec la balise user la commande user et son retour séparé ainsi :

apachectl -S



j'ai :

:VirtualHost configuration:
*:80                   ota.pe (/etc/apache2/sites-enabled/000-default.conf:1)
*:*                    is a NameVirtualHost
         default server www.ota.foundation (/etc/apache2/sites-enabled/www.ota.foundation.conf:4)
         port * namevhost www.ota.foundation (/etc/apache2/sites-enabled/www.ota.foundation.conf:4)
                 alias ota.foundation
         port * namevhost www.ota.pe (/etc/apache2/sites-enabled/www.ota.pe.conf:4)
                 alias ota.pe
         port * namevhost www.otane.org (/etc/apache2/sites-enabled/www.otane.org.conf:4)
                 alias otane.org
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33

Dernière modification par dika (05-03-2017 10:07:16)

Hors ligne

Pied de page des forums