Thunix Wiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
southerntofu 51620f7d22 Allow dots in requested page name 6 months ago
articles Add ssh clients, split OpenSSH specific info and add url for PuTTY 8 months ago
includes Make codeblocks responsive and don't hardcode baseURL 6 months ago
parsedown-1.7.3 Switching to use parsedown 2 years ago
.htaccess Allow dots in requested page name 6 months ago
LICENSE Initial commit 2 years ago
README.md Minimal README with nginx example config 6 months ago
config.php Make codeblocks responsive and don't hardcode baseURL 6 months ago
wiki.php Add path debugging print statements in comment 6 months ago

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;
	}
}