Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
pratique:informatique:dokuwiki [14/11/2020 12:17] – Zatalyz | pratique:informatique:dokuwiki [30/11/2020 10:35] – [Une seule ferme pour plusieurs domaines] Zatalyz | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Dokuwiki et ferme, astuces ====== | ||
- | ===== Une seule ferme pour plusieurs domaines ===== | ||
- | Ça marche sur le même serveur, hein... mais ça marche. | ||
- | |||
- | Arborescence sur le serveur : | ||
- | < | ||
- | - var | ||
- | - www | ||
- | - mondomaine | ||
- | - dokuwiki | ||
- | - farm | ||
- | - lapin | ||
- | - poule | ||
- | </ | ||
- | |||
- | Ici le dokuwiki cœur est ''/ | ||
- | |||
- | Le code dans la config d' | ||
- | <code / | ||
- | < | ||
- | ServerName mondomaine.com | ||
- | |||
- | ServerAdmin webmaster@localhost | ||
- | DocumentRoot / | ||
- | |||
- | ErrorLog ${APACHE_LOG_DIR}/ | ||
- | CustomLog ${APACHE_LOG_DIR}/ | ||
- | |||
- | Alias /lapin / | ||
- | |||
- | < | ||
- | DirectoryIndex index.html index.htm index.php | ||
- | Options Indexes FollowSymLinks MultiViews | ||
- | AllowOverride All | ||
- | Order allow,deny | ||
- | allow from all | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | L' | ||
- | |||
- | Son vhost associé : | ||
- | <code / | ||
- | < | ||
- | ServerName poule.autredomaine.com | ||
- | |||
- | ServerAdmin webmaster@localhost | ||
- | DocumentRoot / | ||
- | | ||
- | RewriteEngine On | ||
- | RewriteRule ^/? | ||
- | RewriteRule ^/? | ||
- | |||
- | ErrorLog ${APACHE_LOG_DIR}/ | ||
- | CustomLog ${APACHE_LOG_DIR}/ | ||
- | |||
- | < | ||
- | DirectoryIndex index.html index.htm index.php | ||
- | Options Indexes FollowSymLinks MultiViews | ||
- | AllowOverride All | ||
- | Order allow,deny | ||
- | allow from all | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | Et en principe tout fonctionne ! | ||
- | |||
- | <WRAP center round info 90%> | ||
- | Tycho: au passage, ton .htaccess est le truc qui fait que https:// | ||
- | </ | ||