bonjour,
debian 8.4 chez OVH soyoustart, fresh reinstal
Apache 2 latest
j'ai fait le tuto
https://debian-administration.org/artic … th_Apache2pour 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 :
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)