Dies ist eine alte Version des Dokuments!
In /etc/nginx/conf.d/example.conf
server {
server_name doku.zonenranslite.de;
root /var/www/html/dokuwiki;
index install.php index.html index.html;
location / {
try_files $uri $uri/ @dokuwiki;
}
location @dokuwiki {
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;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ^~ /data/ {
return 404;
}
location ^~ /conf/ {
return 404;
}
location ^~ /bin/ {
return 404;
}
location ^~ /inc/ {
return 404;
}
location ^~ /vendor/ {
return 404;
}