Difference between revisions of "Wifi kiosk"

Jump to navigation Jump to search
Line 38: Line 38:


At this moment you should be able to freely connect to the KIWIX hotspot and your web browser should display for any request the default Apache web page.
At this moment you should be able to freely connect to the KIWIX hotspot and your web browser should display for any request the default Apache web page.
== 6 - Configuration de Apache ==
You have to create a vhost for kiwix in the file /etc/apache2/sites-available/kiwix like following.
<VirtualHost *:80>
        ServerName kiwix
        DocumentRoot /var/www/kiwix/
</VirtualHost>
In /etc/apache2/sites-available/default, add the following lines:
<Ifmodule mod_alias.c>
RedirectMatch permanent /(.*)$ http://kiwix/
</IfModule>
Create the directory /var/www/kiwix and an empty file /var/www/kiwix/index.html
Create the symbolique in /etc/apache2/sites-enabled/ and reload Apache.
At this moment all the HTTP request should target to http://kiwix/

Navigation menu