Dokuwiki Nginx 伪静态

Dokuwiki Nginx 伪静态
rewrite ^(/)_media/(.*) $1lib/exe/fetch.php?media=$2 last;
rewrite ^(/)_detail/(.*) $1lib/exe/detail.php?media=$2 last;
rewrite ^(/)_export/([^/]+)/(.*) $1doku.php?do=export_$2&id=$3 last;
location /
    {
        if (!-f $request_filename)
        {
            rewrite ^(/)(.*)?(.*)  $1doku.php?id=$2&$3 last;
            rewrite ^(/)$ $1doku.php last;
        }
    }

评论

点击加载 Giscus
或者
Charles Chin

Written by: Charles Chin

Gemini, Millennials, Normie, Kōjigen, N24SWD, AIWS, Upekkha.

CC BY-SA 4.0


Get in Touch

Post me an email or follow me on Mastodon.

Genuinely welcome! Feel free to talk to me about anything at all.

Mastodon 已复制
FOLLOW