I have dokuwiki up and running though there are a few things that aren't working and im not really sure what I am doing wrong or what config settings I don't have set correctly. So I am hosting on a raspberrypi and using nginx to reverse proxy to a sub domain through cloudflare. The subdomain is wiki.mydomain.com. I am pretty sure the problem is somting with how the proxy is set up(or not) please help. Thanks
here is my nginx config for this subdomain (actual URL has been censored):
server {
root /var/www/wiki.mydomain.com/dokuwiki-2022-07-31;
server_name wiki.mydomain.com;
index index.php index.html doku.php;
location ~ ^/(data|conf|bin|inc) {
return 404;
}
location ~ ^/lib.*\.(gif|png|ico|jpg)$ {
expires 31d;
}
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 ^/tag/(.*) /doku.php?id=tag:$1&do=showtag&tag=tag:$1 last;
rewrite ^/(.*) /doku.php?id=$1&$args last;
}
# here you paste your location ~ \.php$
# here is mine commented
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/wiki.mydomain.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/wiki.mydomain.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = wiki.mydomain.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name wiki.mydomain.com;
return 404; # managed by Certbot
}
Here is the dokuwiki.php proxy section (public ip consored):
// Proxy setup - if your Server needs a proxy to access the web set these
$conf['proxy']['host'] = 'myexternal ip';
$conf['proxy']['port'] = '';
$conf['proxy']['user'] = '';
$conf['proxy']['pass'] = '';
$conf['proxy']['ssl'] = 1;
$conf['proxy']['except'] = '';
and here is the local.php (private info censored):
<?php
/*
* Dokuwiki's Main Configuration File - Local Settings
* Auto-generated by config plugin
* Run for user: thefatkid22
* Date: Mon, 29 Aug 2022 00:33:22 -0500
*/
$conf['title'] = 'Mytital';
$conf['license'] = 'cc-by-sa';
$conf['useacl'] = 1;
$conf['autopasswd'] = 0;
$conf['superuser'] = '@admin';
$conf['subscribers'] = 1;
$conf['registernotify'] = 'myemail';
$conf['proxy']['ssl'] = 01;
$conf['plugin']['ckgedit']['scayt_auto'] = 'disable';