Difference between revisions of "Wifi kiosk"

Jump to navigation Jump to search
Line 71: Line 71:


Add the kiwix-serve to the init.d following [http://www.debian-administration.org/articles/28 this documentation].
Add the kiwix-serve to the init.d following [http://www.debian-administration.org/articles/28 this documentation].
== 8 - Integrate kiwix-serve and Apache with mod_proxy ==
Activate mod_proxy with "a2enmod proxy proxy_http rewrite"
Insert in the kiwix vhost file:
<source lang="text">
RewriteEngine On
RewriteRule  ^/(.{1}/.*)$  /wp/$1  [R]
RewriteRule  ^/(search?.*)$  /wp/$1  [R]
<Location /wp/>
ProxyPass http://kiwix:4201/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
</source>
Now you should get the kiwix-serve rendered page by typing http://kiwix/wp/
== Welcome pages ==
Create your welcome pages in HTML. Here is a stub:
<source lang="text">
<html>
<head>
  <title>Kiwix Wifi Kiosk</title>
</head>
<body>
<ul>
<li><a href="/wp/">Surf on Wikipedia</a></li>
<li><a href="kiwix.tar.bz2">Download Kiwix</a></li>
<li><a href="wikipedia.zim">Download Wikipedia</a></li>
</ul>
</body>
</html>
</source>
== Bugs ==
* Links returned by the search engine are dead links. The reason is a bad encoding of the links.

Navigation menu