[dokuwiki] Re: problems with dokuwiki on webfaction

  • From: Andreas Gohr <splitbrain@xxxxxxxxx>
  • To: "dokuwiki@xxxxxxxxxxxxx" <dokuwiki@xxxxxxxxxxxxx>
  • Date: Wed, 6 Aug 2008 08:44:31 +0200

Am 05.08.2008 um 23:18 schrieb Jan Decaluwe <jan@xxxxxxxxxxxxxxx>:

In the past days I'm experiencing problems with my dokuwiki's,
which are hosted by webfaction.

Webfaction changed its php configuration. The default is that
urls for media files like .pdf, .gz, .png etc are no longer
served through php, but directly as static files. As a result,
dokuwiki scripts like fetch.php, detail.php, etc don't work
anymore for such files - you get File Not Found errors.

I'm not sure i understand what your hoster did in the past and what it is doing now. But messing around with how basic webserving works suggests you should look for a better host.

Webfaction tells me that I have use to rewrite rules to
work around this

<IfModule !php5_module>
RewriteEngine on
RewriteCond %{REQUEST_URI} \.(html|pdf|gz|png|jpg|mp3)$
RewriteRule (.*) http://127.0.0.1:2480/$1 [P]
</IfModule>

 resizing seems to break the
rewriting workaround. Perhaps there is someone who
immediately understands why?

Resized imageurls may not end in gif, png or jpg anymore. You could try to replace the $s with [$&] but i really recommend to get a real webhost.

Andi
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: