2 comments on “Using DD-WRT to Serve Static Web Pages

  1. I am very happy you wrote up a couple of these articles. I was having some issues myself with getting DNS working so I could call my machines via their hostname rather than needing to know their ip addy’s. I was also happy to see you had a nice write up on using JFFS2 and even how to set it up and serve content from the router.

    One issue I had when setting this up is that DD-WRT would not run the ‘boot_set.sh’ file. I actually tried running this file from ‘Administration > Commands’ by clicking on ‘Run Commands’ and I received a ‘Permission Denied’ message. I ended up going back my ssh window and setting ‘chmod +x boot_set.sh’ and then rebooted the router. Everything started working as normal. Once I set the file as executable, all was good. You may want to add this into your step-by-step.

    I have one other issue as well. try as I might I can’t seem to get the IP Information to appear when editing the webpage to show the Static/Dynamic ip’s used on my network. I’ve double checked the code I’ve written versus what you offered and there’s no difference. I will go over this a bit more before I bug you again about ti.

    Anyway, nice write-up and hope to see you offer up some more ‘how-to’ articles.

    Thanks,
    c0p…

    • Thanks for the comment. I see a lot of views of the DD-WRT posts. For the execution privs, that may vary by firmware version. This post was written a couple of years ago and may be slightly out of date with newer releases. Looking at the latest is something I need to do, but I no longer have a test router.

      For the names not showing up. The only ones that will populate automatically are the ones DD-WRT issues DHCP addresses for. The static ones are in a file you create /jffs/www/hosts. The boot script copies (builds) this file into one of the html files (hoststat.htm) in the web servers hosting location (/tmp/www) so that its available to serve.

      This post talks about serving the locl IPs via web: https://unfinishedbitness.info/2014/04/14/dd-wrt-web-server-for-viewing-all-network-ips/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s