--- wikisrc/wiki/previewing_with_template.mdwn 2014/01/11 01:41:39 1.2 +++ wikisrc/wiki/previewing_with_template.mdwn 2019/05/04 10:35:10 1.6 @@ -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 @@ -37,6 +37,22 @@ Use page.tmpl requires cgi support (it h --dumpsetup ~/wikisrc.setup +# 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.