Difference between revisions of "Wifi kiosk"

Jump to navigation Jump to search
Line 42: Line 42:


You have to create a vhost for kiwix in the file /etc/apache2/sites-available/kiwix like following.
You have to create a vhost for kiwix in the file /etc/apache2/sites-available/kiwix like following.
<source lang="text">
<VirtualHost *:80>
<VirtualHost *:80>
         ServerName kiwix
         ServerName kiwix
         DocumentRoot /var/www/kiwix/
         DocumentRoot /var/www/kiwix/
</VirtualHost>
</VirtualHost>
</source>


In /etc/apache2/sites-available/default, add the following lines:
In /etc/apache2/sites-available/default, add the following lines:
<source lang="text">
<Ifmodule mod_alias.c>
<Ifmodule mod_alias.c>
RedirectMatch permanent /(.*)$ http://kiwix/
RedirectMatch permanent /(.*)$ http://kiwix/
</IfModule>
</IfModule>
</source>


Create the directory /var/www/kiwix and an empty file /var/www/kiwix/index.html
Create the directory /var/www/kiwix and an empty file /var/www/kiwix/index.html