From 9a27708b8e1673e818fa38ddaeefb351f0973c65 Mon Sep 17 00:00:00 2001 From: Oskar Vigren Date: Mon, 18 Nov 2019 19:37:18 +0100 Subject: [create-a-wiki] Change web server to busybox's and remove hosts section --- create-a-wiki-preview.mdwn | 77 ++++++++-------------------------------------- 1 file changed, 13 insertions(+), 64 deletions(-) diff --git a/create-a-wiki-preview.mdwn b/create-a-wiki-preview.mdwn index 79e48ce..014b527 100644 --- a/create-a-wiki-preview.mdwn +++ b/create-a-wiki-preview.mdwn @@ -44,7 +44,7 @@ Buster. This is the overview of software needed: * Pandoc -- from Debian * Some Ikiwiki plugins (e.g. for Pandoc) which will be provided from Fripost's configuration and wiki repositories. - * Nginx -- webserver from Debian + * BusyBox -- includes http-server, included in Debian Install and configure Git ========================= @@ -126,79 +126,28 @@ Run setup: ikiwiki --setup ~/.ikiwiki/fripost-wiki.setup -Install and conifgure Nginx and host files -========================================== - -Fripost uses [Nginx](http://nginx.org/en/docs/). For installation and -configuration -follow [Ikiwiki on Dot CGI](https://ikiwiki.info/tips/dot_cgi/). Note -the alexjj comment that on Debian the package *fcgiwrap* automatically -spwans the FastCGI program. - - sudo apt install nginx - -The follwing will configure *http://wiki.fripost.localhost* and -*http://fripost.localhost*: - -``` -cat < /tmp/hosts - -# Fripost wiki preview setup -127.0.1.1 wiki.fripost.localhost fripost.localhost -::1 wiki.fripost.localhost fripost.localhost -EOF -grep -q wiki.fripost.localhost /etc/hosts \ - || { sudo cp /etc/hosts /etc/hosts.bac_$(date +%Y%m%d) \ - && sudo sed -i '$ r /tmp/hosts' /etc/hosts ; } +pkill -ef "busybox httpd -p 127.0.0.1:8001" ``` -Alternatives to Nginx include Apache. Fripost wiki used include -configuration for Apache, but these are not maintained any -longer. Brows this repository history for sample configurations. - -Refresh wiki -============ +Now all is in place! Visit . +The main site page can be accessed at . -Now all is in place! Visit . Use the -following commands to refresh or fully rebuild the wiki: +Use the following commands to refresh or fully rebuild the wiki: ``` ikiwiki --setup ~/.ikiwiki/fripost-wiki.setup --refresh -- cgit v1.2.3