<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>404</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="../style.css" type="text/css" /> <link rel="stylesheet" href="../local.css" type="text/css" /> </head> <body> <div class="page"> <div class="pageheader"> <div class="header"> <span> <span class="parentlinks"> <a href="../index.html">ikiwiki</a>/ <a href="../plugins.html">plugins</a>/ </span> <span class="title"> 404 </span> </span> </div> </div> <div id="pagebody"> <div id="content" role="main"> <p><span class="infobox"> Plugin: 404<br /> Author: <span class="createlink">Simon McVittie</span><br /> Included in ikiwiki: yes<br /> Enabled by default: no<br /> Included in <a href="./goodstuff.html">goodstuff</a>: no<br /> Currently enabled: no<br /> </span></p> <p>This plugin lets you use the IkiWiki CGI script as an Apache 404 handler, to give the behaviour of various other wiki engines where visiting a nonexistent page provides you with a link to create it.</p> <p>To enable the 404 handler you need to:</p> <ol> <li>Edit your <code>.setup</code> file and add <code>404</code> to the <code>add_plugins</code> line.</li> <li><p>Add a 404 error document handler in your Apache configuration:</p> <p><code>ErrorDocument 404 /url/path/to/ikiwiki.cgi</code></p> <p>Where <code>/url/path/to</code> is the path portion of the URL to the <code>ikiwiki.cgi</code> binary.</p></li> </ol> <p>This plugin might also be useful on non-Apache web servers, if they provide the <code>REDIRECT_STATUS</code> and <code>REDIRECT_URL</code> environment variables to their 404 handlers. <code>REDIRECT_STATUS</code> should be <code>404</code> and <code>REDIRECT_URL</code> should be the path part of the URL (for instance it would be <code>/plugins/404/</code> if this page was missing).</p> <p>If you would like help with adapting this plugin for a different web server, you will need to provide the output of <span class="createlink">this 404 handler</span>.</p> </div> </div> <div id="footer" class="pagefooter" role="contentinfo"> <div id="pageinfo"> <div class="tags"> Tags: <a href="./type/web.html" rel="tag">type/web</a> </div> <div id="backlinks"> Links: <a href="./goto.html">goto</a> <a href="../tips/dot_cgi.html">tips/dot cgi</a> </div> <div class="pagedate"> Last edited <span class="date">Tue Feb 26 23:01:54 2019</span> <!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> --> </div> </div> <!-- from ikiwiki --> </div> </div> </body> </html>