F2 webserver

From FON Wiki Beta

Jump to: navigation, search
Changes and instructions described in this page are meant to be done by developers only. Applying these changes to your La Fonera might irremediably damage it. FON will not be held responsible for their consequences. Read instructions carefully!

Contents

Adding your own webserver to the Fonera 2

Description

  • Currently you can only see the Administration console when browsing to http://fonera
  • We would like it to show our HTTP pages located on the connected usb storage device

How To

  • Start a webserver instance on port 89/Tcp which will host your html files located on "Disc-A1" in the Web folder. It's best to give your Usb storage device a unique name though...it could become Disc-B1 next time you plug it in otherwise
httpd -p 89 -h /tmp/mounts/Disc-A1/web
  • Open the firewall on port 89
iptables -A input_daemon -p tcp --dport 89 -j zone_wan_ACCEPT
  • Stopping the webserver instances:
kill -9 `ps -ax | grep -v 'ps -ax' | grep httpd | awk '{print $1}'`

Known Issues & Limitations

  • process and iptables sometimes stops and it doesn't last over a router's reboot.
  • No Directory listing (if you do not use index.html it will not list whatever is there as well!) (securitywise : GOOD :-)
  • No PHP/MySql support

Contributions

  • ChrisPHL
  • Kyros
  • SkyNETbbs
Personal tools