Sry, I'm running out of hints what to do - is this even possible to use a farm with multiple domains with the instructions in
https://www.dokuwiki.org/farms?
My goal is to have animals at
animal1.tld[/m], [m]animal2.tld etc
This is what I have done on my shared webhost (no vhost-editing):
1. set up a
farmer -> running at
farmerdomain.tld[/m], local path is [m]/www/dokuwiki
2. create
farm directory ->
/www/farm, it's writable
3. edit the farmer's
inc/preload.php
if(!defined('DOKU_FARMDIR')) define('DOKU_FARMDIR', '/is/htdocs/ws123456789/www/farm');
include(fullpath(dirname(__FILE__)).'/farm.php');
4. extract and rename animal-template to
/www/farm/animal1.tld
5. edit
/www/farm/animal1.tld/conf/local.protected.php:
$conf['basedir'] = '/is/htdocs/ws123456789/www/farm/animal1.tld/';
6. add the following to the farm's
.htaccess
RewriteEngine On
RewriteRule ^/?([^/]+)/(.*) /is/htdocs/ws123456789/www/dokuwiki/$2?animal=$1 [QSA]
RewriteRule ^/?([^/]+)$ /is/htdocs/ws123456789/www/dokuwiki/?animal=$1 [QSA]
Options +FollowSymLinks
7. set the domain via webinterface of my provider to ... what?
7.1. Animal:
/www/farm/animal1.tld -> 500 - error-log: Request exceeded the limit of 10 internal redirects due to probable configuration error.
7.2. Farm:
/www/farm -> Default "nothing's here" page of my provider. error-log: "Directory index forbidden by Options directive"
7.3. Farmer:
/www/dokuwiki[/m] -> Animal wiki, but with broken links (full path [m]/is/htdocs/ws123456789/www ...[/m]). checked: [m]less /is/htdocs/ws123456789/www/dokuwiki/README displays the readme.
7.3.1. Changed all paths from
/is/htdocs/ws123456789/www/[/m] to [m]/www/
7.3.2. animal wiki is farmer wiki... 8-(
My understanding of what the rewrite rules do is rather vage (as you might have guessed).
Anyone got a hint or seeing an error?