knowhow_dokuwiki
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| knowhow_dokuwiki [2025/04/05 19:54] – arf20 | knowhow_dokuwiki [2025/04/05 19:59] (current) – removed arf20 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Dokuwiki ====== | ||
| - | |||
| - | https:// | ||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | On the web VM (Debian 12) | ||
| - | |||
| - | * Install '' | ||
| - | * Modify nginx config off [[https:// | ||
| - | * Restart nginx (TODO nginx knowhow) | ||
| - | * Add wiki.arf20.com DNS entry (TODO bind howto) | ||
| - | * Generate certificate for wiki.arf20.com with '' | ||
| - | * Add cert to nginx and restart nginx | ||
| - | * Navigate to '' | ||
| - | * Add user '' | ||
| - | |||
| - | ==== nginx config ==== | ||
| - | |||
| - | ''/ | ||
| - | |||
| - | < | ||
| - | server { | ||
| - | listen 80; | ||
| - | listen 443 ssl; | ||
| - | listen [::]:80; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name wiki.arf20.com; | ||
| - | |||
| - | ssl_certificate / | ||
| - | ssl_certificate_key / | ||
| - | |||
| - | root / | ||
| - | |||
| - | access_log / | ||
| - | error_log / | ||
| - | |||
| - | index index.html index.php index.htm; | ||
| - | |||
| - | location ~ ^/ | ||
| - | expires 365d; # browser caching | ||
| - | } | ||
| - | |||
| - | location / { | ||
| - | try_files $uri $uri/ @dokuwiki; | ||
| - | } | ||
| - | |||
| - | location @dokuwiki { | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | # | ||
| - | rewrite ^/(.*) / | ||
| - | |||
| - | # rewrites " | ||
| - | # setting to .htaccess in dokuwiki config page | ||
| - | } | ||
| - | |||
| - | location ~ [^/ | ||
| - | fastcgi_split_path_info ^(.+? | ||
| - | if (!-f $document_root$fastcgi_script_name) { | ||
| - | return 404; | ||
| - | } | ||
| - | |||
| - | fastcgi_pass unix:/ | ||
| - | fastcgi_index index.php; | ||
| - | |||
| - | include fastcgi_params; | ||
| - | fastcgi_param | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | |||
knowhow_dokuwiki.1743882847.txt.gz · Last modified: 2025/04/05 19:54 by arf20
