Install.php (sur mon domaine en .local et avec caddy, conf récupéré dans la doc de dokuwiki) :blobPikaGlare:
Install.php (sur mon domaine en .local et avec caddy, conf récupéré dans la doc de dokuwiki) :blobPikaGlare:
https://your.wikidomain.com {
encode gzip zstd
root * /srv/doku
#Remember to comment the below forbidden block out when you're installing, and uncomment it when done.
@forbidden path /data/* /conf/* /bin/* /inc/* /install.php
handle @forbidden {
respond * 403
}
#End of the forbidden block
try_files {path} {path}/index.html
route {
handle_path /_media/* {
rewrite * /lib/exe/fetch.php?media={path}&{query}
}
handle_path /_detail/* {
rewrite * /lib/exe/detail.php?media={path}&{query}
}
handle /_export/* {
@export path_regexp export ^/_export/([^/]+)/(.*)
rewrite @export /doku.php?do=export_{re.export.1}&{query}&id={re.export.2}
}
handle / {
rewrite * /doku.php?{query}
}
try_files {path} /doku.php?id={path}&{query}
}
file_server
php_fastcgi 127.0.0.1:9000
}handle @forbidden pour l'installation ?