Bonjour,
Quelqu'un a déjà utilisé le plugin vhosts avec SPIP 1.9.2c ?
Dans l'ordre :
* j'ai configuré Apache pour faire pointer 2 domaines (domaineA et domaineB) sur mon installation de SPIP : les 2 domaines pointent bien vers la racine de mon site
* j'ai installé le plugin et ai configuré (dans Configuration > Gestion des virtuals hosts), 2 "url du site" et "vhost associé" :
http://domaineA -> domaineA
http://domaineB -> domaineB
* j'ai ajouté 2 répertoires dans mon dossier squelettes (domaineA et domaineB) et ai créé dans chaque le squelette sommaire.html
Problème : peu importe, le domaine avec lequel j'attaque le site, je vois toujours le squelette sommaire.html de dist/, en revanche si je "force" le host cela fonctionne :
http://domaineA -> /dist/sommaire.html
http://domaineB -> /dist/sommaire.html
http://domaineA/?HOST=domaineA -> /squelettes/domaineA/sommaire.html
http://domaineB/?HOST=domaineA -> /squelettes/domaineA/sommaire.html
http://domaineA/?HOST=domaineB -> /squelettes/domaineB/sommaire.html
http://domaineB/?HOST=domaineB -> /squelettes/domaineB/sommaire.html
Dans spip.log, j'ai dans les 2 premiers cas :
Dec 03 10:02:46 127.0.0.1 (pid 2536) vhosts = array (
'http://domaineA' => 'domaineA',
'http://domaineB' => 'domaineB',
)
Dec 03 10:02:46 127.0.0.1 (pid 2536) requiredHost=
Dec 03 10:02:46 127.0.0.1 (pid 2536) vhosts = array (
'http://domaineA' => 'domaineA',
'http://domaineB' => 'domaineB',
)
Dec 03 10:02:46 127.0.0.1 (pid 2536) requiredHost=
Dec 03 10:02:46 127.0.0.1 (pid 2534) vhosts = array (
'http://domaineA' => 'domaineA',
'http://domaineB' => 'domaineB',
)
Dec 03 10:02:46 127.0.0.1 (pid 2534) requiredHost=
Le requiredHost reste désespérément vide...
Sinon pour le reste, j'ai simplement ça :
Dec 03 10:03:58 127.0.0.1 (pid 2537) vhosts = array (
'http://domaineA' => 'domaineA',
'http://domaineB' => 'domaineB',
)
Dec 03 10:03:58 127.0.0.1 (pid 2537) requiredHost=domaineA
Avec le requiredHost qui change bien en fonction du HOST en paramètre...
Une idée ?
Merci d'avance...
--
Thomas Beaumanoir