--- wikisrc/wiki/previewing_with_template.mdwn 2014/01/11 01:41:39 1.2 +++ wikisrc/wiki/previewing_with_template.mdwn 2019/05/04 10:44:10 1.7 @@ -1,4 +1,4 @@ -[[!meta title="Previwing NetBSD Wiki with template"]] +[[!meta title="Previewing NetBSD Wiki with template"]] Some template requires ikiwiki cgi mode. If you setup ikiwiki with cgi mode, you can ignore cgi part of ikiwiki @@ -18,7 +18,7 @@ Assuming that your wikisrc tree is in /u # Setting up ikiwiki with cgi mode -Use page.tmpl requires cgi support (it has HAVE_ACTIONS conditionals) +page.tmpl requires cgi support (it has HAVE_ACTIONS conditionals) ## Prepare destination directory $ mkdir ~/public_html @@ -36,6 +36,25 @@ Use page.tmpl requires cgi support (it h --plugin goodstuff --plugin websetup \ --dumpsetup ~/wikisrc.setup +Please note that `wikisrc.setup` configuration file will be reused +to refresh and rebuild the wiki in the next sections with a shorter +commandline. + +# Setting up bozohttpd webserver +Put the following line to your /etc/inetd.conf. +This line enables per-user directories. + + http stream tcp nowait:600 _httpd /usr/libexec/httpd httpd -u /var/www + +Additionally, if you have disabled inetd, please enable it. + + $ vi /etc/rc.conf + +and put + + inetd=YES + +to it. # Previewing wikisrc Open http://localhost/~your-user-name/wikisrc in your web browser.