Hallo zusammen,
ich versuche gerade meine Dokuwiki-Installation von WinServer2012 / Apache auf Raspberry PI 4 / nginx umziehen zu lassen. Die Login-Seite bekomme ich auch angezeigt, nach der Anmeldung kommt allerdings 404 not found. Vielleicht kann mir jemand einen Tip geben, wo mein Fehler liegt. Meine Konfig sieht so aus:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
#server_name rasp01;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
location /wiki {
alias /ssd1/httpserver/wiki;
index index.php doku.php;
try_files $uri $uri/ @dokuwiki;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
location @dokuwiki {
rewrite ^/wiki/_media/(.*) /lib/exe/fetch.php?media=$1 last;
rewrite ^/wiki/_detail/(.*) /lib/exe/detail.php?media=$1 last;
rewrite ^/wiki/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
rewrite ^/wiki/(.*) /doku.php?id=$1 last;
}
# pass PHP scripts to FastCGI server
location ~ \.php$ {
try_files $fastcgi_script_name =404;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include /etc/nginx/fastcgi_params;
}
charset utf-8;
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
Danke im voraus
Markus