Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
software:dokuwiki [2008/06/07 13:57] cyril |
software:dokuwiki [2013/09/19 20:04] cyril add nginx support |
||
---|---|---|---|
Line 3: | Line 3: | ||
[[http:// | [[http:// | ||
- | ===== Have it working on free.fr ===== | ||
- | There was some problems to have it working on my host Free. | + | ===== Le faire fonctionner sur les pages persos de free.fr ===== |
- | Someone created | + | Il y a quelques problèmes pour le faire fonctionner chez Free, mais quelqu' |
+ | |||
+ | Cependant dokuwiki est dorénavant banni chez Free. Si vous êtes détecté, votre compte sera suspendu pour le motif : | ||
+ | >Les interfaces utilisant des fichiers locaux comme base de données/ | ||
+ | |||
+ | ===== Install with Nginx ===== | ||
+ | |||
+ | userewrite = 2 (dokuwiki is rewriting) did not work with nginx, so I wanted to switch to mode 1 where the web server manages rewriting. | ||
+ | |||
+ | There are suggestions of configuration [[https:// | ||
+ | |||
+ | Therefore I use this configuration, | ||
+ | # always needed | ||
+ | location ~ / | ||
+ | deny all; | ||
+ | } | ||
+ | |||
+ | # needed to support old rewrite | ||
+ | location ~ / | ||
+ | rewrite ^/ | ||
+ | } | ||
+ | |||
+ | # needed for new rewrite | ||
+ | location ~ /wiki/lib/ {} | ||
+ | location ~ /wiki/ { | ||
+ | rewrite ^/ | ||
+ | rewrite ^/ | ||
+ | rewrite ^/ | ||
+ | rewrite ^/wiki/(.*) / | ||
+ | } | ||
+ | </ | ||
===== The sidebar ===== | ===== The sidebar ===== | ||
Line 46: | Line 75: | ||
==== source ==== | ==== source ==== | ||
+ | |||
+ | It wasn't finding the local files without giving the full path. So I've added several cases where if it fails to find the file, it tries to find it relatively to the website root and relatively to the dokuwiki media path. | ||
<code diff> | <code diff> | ||
Line 56: | Line 87: | ||
==== pageindex ==== | ==== pageindex ==== | ||
+ | |||
+ | I modified it so that it displays directories/ | ||
<code diff> | <code diff> |