WRTSL54GS as a Webserver

Discussion in 'Cisco/Linksys Wireless Routers' started by Outriding, Sep 24, 2006.

  1. Outriding

    Outriding Guest

    I've done many searches for days here, and there is a ton of info avail, much of it over my head.

    I now have this router, and want to attach a 1gb drive to it, that houses some htm files. I have upgraded to Thibor 15c and all is good. Is there a lay-person guide to enableing what I want to do with the router?

    Any tips or links much appreciated.
  2. bkmo

    bkmo LI Guru Member

    I am running a webserver on my SL with Thibor 15C onboard.
    It is as simple as adding three lines to your startup script.

    ln -sf /foreign_shares/USB/web/busybox /usr/tmp/etc/httpd <<the path to busybox may be different
    cd /foreign_shares/USB/web
    /usr/tmp/etc/httpd -p 6767

    Of course this script is tailored to my setup, but it is this simple. You also need an un-crippled busybox on the USB along with your web pages. Nothing is written to the router but a simple symlink, and is deleted at reboot.

    As you can see I have a directory called web on the usb device attached to the router. The share shows up as USB, yours may be different. I also have a copy of busybox and the webpages in this folder. Busybox can be extracted from this archive, http://www.batbox.org/wrt54g-0.6.tar.gz The first line creates a Symbolic link from busybox to httpd. The second changes to the web directory. The third executes httpd with the port number of my choice. The only change you would need to make is the path to your folder on the USB device if different than mine. Now this hopefully was not over your head. PM me if you need a hand. One more thing....if you need this page viewable from the internet you need to add a firewall rule. My rule below of course references the port I have chosen to run the page.

    iptables -I INPUT -p tcp --dport 6767 -j

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice