Thunix Wiki
Go to file
Blade of Darkness 527916b078 Add Backup wiki page 2021-09-24 23:53:39 +02:00
articles Add Backup wiki page 2021-09-24 23:53:39 +02:00
includes Make codeblocks responsive and don't hardcode baseURL 2021-03-20 19:15:04 +01:00
parsedown-1.7.3 Switching to use parsedown 2019-07-04 16:34:33 +00:00
.htaccess Allow dots in requested page name 2021-03-21 10:46:35 +01:00
LICENSE Initial commit 2019-05-30 10:59:36 -04:00
README.md Minimal README with nginx example config 2021-03-20 18:31:16 +01:00
config.php Make codeblocks responsive and don't hardcode baseURL 2021-03-20 19:15:04 +01:00
wiki.php Add path debugging print statements in comment 2021-03-21 10:46:18 +01:00

README.md

thunix wiki

Requires a webserver and PHP. The web server needs to be configured to:

  • serve wiki.php by default (not index.php)
  • when a requested URL does not correspond to an actual file, pass the requested page to wiki.php?page=

On apache, this is achieved by provided .htaccess. On nginx, you can do something like:

server {
	listen 80;
	root /var/www/wiki_webroot;
	index wiki.php;
	server_name _;

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
	}

	location ~ ^/(.+)$ {
		try_files $uri $uri/ /wiki.php?page=$1;
	}
}