Ispconfig3 jailkit DokuWiki nginx directives

ordigital

Adam Mateusz Brożyński

Posted on March 4, 2024

Ispconfig3 jailkit DokuWiki nginx directives

This directives can be saved in ispconfig3 admin panel and used for domains with DokuWiki.

    #Support for X-Accel-Redirect
    location ~ ^/data/ { internal ; }

    location ~ ^/lib.*\.(js|css|gif|png|ico|jpg|jpeg)$ {
        expires 365d;
    }

    location / { try_files $uri $uri/ @dokuwiki; }

    location @dokuwiki {
        # rewrites "doku.php/" out of the URLs if you set the userwrite setting to .htaccess in dokuwiki config page
        rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
        rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
        rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
        rewrite ^/(.*) /doku.php?id=$1&$args last;
    }
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
ordigital
Adam Mateusz Brożyński

Posted on March 4, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related