Run a Webserver on TomatoUSB

If you want to run your own little server on TomatoUSB, try this.

You'll need optware installed first. Follow instructions here: http://gwyneth.blogspot.com/2012/03/installing-optware-on-tomatousb.html

Install thttp:
ipkg install thttpd

Create config file:
vi /opt/etc/thttpd.conf

Add contents. This will run a server on port 4444 with the server root pointed to /opt/share/www:
dir=/opt/share/www
port=4444
user=nobody
nochroot
nosymlink
novhost
logfile=/var/log/thttpd.log
pidfile=/var/run/thttpd.pid

Start service:
thttpd -C /opt/etc/thttpd.conf

1 comments:

Anonymous said...

Thanks for the instructions. I installed the http server in 2 minutes :)

but,,,,,,I want to run it on port 80 and its not accessible because the router block all requests. port fwding doesnt work. the only way I found is to enable the remote admin on port 80 - which isnt the best solution

any idea pls?