Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| pratique:informatique:dokuwiki [30/11/2020 10:35] – [Une seule ferme pour plusieurs domaines] Zatalyz | pratique:informatique:dokuwiki [30/11/2020 10:36] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| 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 / | ||
| + | | ||
| + | RewriteEngine On | ||
| + | RewriteRule ^/farm/ - [R=404] | ||
| + | |||
| + | < | ||
| + | DirectoryIndex index.html index.htm index.php | ||
| + | Options Indexes FollowSymLinks MultiViews | ||
| + | AllowOverride All | ||
| + | Order allow,deny | ||
| + | allow from all | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | La réécriture sur " | ||
| + | |||
| + | 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:// | ||
| + | </ | ||