Thunix Wiki
Go to file
southerntofu 42a438fc52 Make codeblocks responsive and don't hardcode baseURL 2021-03-20 19:15:04 +01:00
articles Add ssh clients, split OpenSSH specific info and add url for PuTTY 2021-01-12 13:48:41 +01: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 Backporting htaccess fix from wiki.php 2019-07-10 11:12:28 +00: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 Make codeblocks responsive and don't hardcode baseURL 2021-03-20 19:15:04 +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;
	}
}