Monday, June 28, 2010

Simple busybox http server on DD-WRT

By default DD-WRT runs its own http server(/usr/sbin/httpd), providing web management interface to configure the router. The server is highly integrated and hard to reuse for our own contents. If you just want to host some web pages without CGI support, the httpd server in busybox is a good alternative.

  1. (Optional)Move DD-WRT's web admin to another port
    The best way to do so is changing a nvram value as described here.
    So login the router and run
    nvram set http_lanport=88
    nvram commit


    Then after rebooting, the new port will be 88 and you can access the web admin at http://router_ip:88/. Everything should work just as before including firmware upgrade.

  2. Configure busybox httpd
    The OpenWrt's busybox is installed if you followed the previous post. This busybox provides more features than the DD-WRT one, including a small web server. To launch it, run
  3. /opt/usr/sbin/httpd -p 80 -c /opt/etc/httpd.conf -h /opt/www

    the server(/opt/usr/sbin/httpd) will listen port 80(-p 80) with configuration file /opt/etc/httpd.conf(-c /opt/etc/httpd.conf) and use /opt/www as home folder(-h /opt/www).

    Everything looks good, except, both our http server and dd-wrt's are called httpd. This will be a problem as DD-WRT will kill and restart the httpd service when applying some settings. If that ever happens, our httpd service will be terminated unexpectedly. So let's change the service name.

    Here is (another) dirty hack but works for me. Log in PuTTY and run:

    cp /opt/bin/busybox /opt/bin/busybox.orig
    cp /opt/bin/busybox /tmp/busybox
    sed -i 's/httpd$/httpe/g' /tmp/busybox
    cp /tmp/busybox /opt/bin/busybox
    ln -s /opt/bin/busybox /opt/usr/sbin/httpe

    So now we have changed the name of busybox's http server from httpd to httpe. If it's messed up, restore the old busybox:
    /bin/cp /opt/bin/busybox.orig /opt/bin/busybox

  4. Run it as service
    Create file /opt/etc/init.d/httpd

    source /mnt/root/.profile
    /opt/usr/sbin/httpe -p 80 -c /opt/etc/httpd.conf -h /opt/www

    And run
    chmod a+x /opt/etc/init.d/httpd
    ln -sf /opt/etc/init.d/httpd /opt/etc/init.d/S20httpd

65 comments:

thorwald said...

ok - got this to work, despite the fact that the start command gives an error:

/opt/usr/sbin/httpe: invalid option --cc

but then almost everything in the configuration file is commented out anyway.

next:
- how do i get it to show index.html by default, or if none exists, showing a directory listing instead?

thorwald said...

ok - now that i've played with it a bit more - it doesn't work in the harsh real-world-out-there, at least not for serving mp4 media files.

namely - if a browser aborts a download in the middle, the router goes to hiccup mode with high CPU usage and stops web-serving.

only a reboot will cure it. this, obviously, is unacceptable.

i guess i'll be looking at lighttpd next.

Anonymous said...

maybe it's because I'm running a different version of busybox (1.15.3), but it didn't come with the link to httpd, and when I create the link following the above directions to use httpe it tells me that the applet doesn't exist.

Any ideas on what to do to get it working?

Thanks!

Anonymous said...

To answer my own question about busybox...

With the latest version of OpenWRT (BackFire) the http functionality isn't built into busybox.

I grabbed the newest build of busybox from Kamikaze and was able to get it working!

Thanks for the great writeups!

Routerlogin Net said...

it is very helpful for me
Routerlogin
Routerlogin Net

Anonymous said...

Download apk editor.apk 1.17 and every single model reality for Android. Best Video Editor with Music, Sticker, obscure foundation and No Crop for Instagram.

kalichmpa said...

UNCGenie is UNC Greensboro's tool to allow current and former Students, Financial Aid Applicants, and Faculty and Staff to conduct certain business transactions with UNCG and/or view information on file with the University.davita village web

aditya said...



Why Should You Use an Ergonomic Keyboard? - Ergonomic keyboards are acceptable for individuals who might need specially adapted PC accessories to get accessibility technology.


Alex Cord said...

Nice Post this Is Very interesting and informative Post. Thank You For Sharing With Us.
For more details Click This Link:- Lexmark support number

sofialee said...

In case you have trouble with the quicken account and it is not working then you can simply opt for sending a feedback through the help menu. You can also mail at the customer support email id for help.
Quicken mobile error updating account
Quicken Remote Access Problems
Quicken login not working
Quicken Remote Access Problems
Quicken mobile error

Sophia Thomas said...

This post is a pool of information. Readers are impressed after reading this post. Thanku for sharing this post.
Assignment Help Sydney

rickypauls said...

Assignment Help is the great solution for all those students who need help for completing their homework. If you need expert help for your work, browse the website of greatassignmenthelp or talk with the academic expert for more clarification.
Assignment Help Online
Online Assignment Help
Assignment Help Online Services
Assignment Helper
Assignment Assistance
Assignment Help Experts
Online Assignment Help Services

Vinod Sharma said...

Very nice blog post is giving very valuable information. - 5 ways ai will transform logistics industry

Joon Mattran said...

Nice Work And Free Download Crack Software:
Parallels Desktop Crack

aditya said...

I have read so many content on the topic of the blogger lovers however this piece of writing is actually a nice paragraph, keep it up.

melissa sue anderson
david bromstad partner
free games that don t need internet
appvalley vip
kissanime alternatives

Max Willor said...

Very informative and well written post! Quite interesting and nice topic chosen for the post. My Assignment Help Au has been a pioneer within the Best Assignment Help online services and within the Australia and different countries ceaselessly for over Seven years. Make an order now for professional work, delivered on time and pure. You can email us at cs@myassignmenthelpau.com or Phone Number: +61-2-8005-8656

albellag said...

Visual Studio Crack is for JavaScript developers who want a complete development tool for server-side scripts and want to access .NET-based frameworks from Node.js. However, in general, Visual Studio 2020 Code is a lightweight yet robust cross-platform code editor that anyone can use to build applications for the Web or the cloud.
https://crackhome.org/visual-studio-2020-crack/

albellag said...

The Pinnacle Studio Crack offers an extensive built-in surveillance device with built-in hardware, making it a great visual device for program management. Thanks to a range of special work and knowledge, you can import, personalize and create projects from a multimedia environment.
https://warecrackpro.com/pinnacle-studio-crack/

Sumit Kumar said...

Quickbooks error 9999
Quickbooks payroll error 15102
Quickbooks error code 15102
Error code 15102 Quickbooks
Quickbooks 15102 error

Sumit Kumar said...

Unlock Extratorrent
Extratorrent and Mirror sites
Extratorrent unlock
ET Proxy Sites

Extratorrent Proxy websites

Sumit Kumar said...

unblock Extratorrent
Unlock the extratorrent

Hamzu said...

Vray 3.20.02 For 3Ds Max 2017
IObit Malware Fighter Pro
Genymotion 3.1.1 Crack
MassTube Plus Crack
Remo Recover Crack
Disk Drill Pro Crack
EaseUS Partition Master
SyncBreeze Enterprise Crack
Mirillis Action Crack
Camtasia Studio Crack
AVS Video Editor Crack
Avira Antivirus Pro Crack
System Mechanic Pro Crack
Bandicam Crack
Sublime Text Crack
Malwarebytes Anti-Malware
Avast Internet Security Crack
DriverMax Pro Crack
I enjoyed your blog Thanks for sharing such an informative post. We are also providing the best services click on below links to visit our website.

Hamzu said...

Vray 3.20.02 For 3Ds Max 2017
IObit Malware Fighter Pro
Genymotion 3.1.1 Crack
MassTube Plus Crack
Remo Recover Crack
Disk Drill Pro Crack
EaseUS Partition Master
SyncBreeze Enterprise Crack
Mirillis Action Crack
Camtasia Studio Crack
AVS Video Editor Crack
Avira Antivirus Pro Crack
System Mechanic Pro Crack
Bandicam Crack
Sublime Text Crack
Malwarebytes Anti-Malware
Avast Internet Security Crack
DriverMax Pro Crack
I enjoyed your blog Thanks for sharing such an informative post. We are also providing the best services click on below links to visit our website.

Hamzu said...

Vray 3.20.02 For 3Ds Max 2017
IObit Malware Fighter Pro
Genymotion 3.1.1 Crack
MassTube Plus Crack
Remo Recover Crack
Disk Drill Pro Crack
EaseUS Partition Master
SyncBreeze Enterprise Crack
Mirillis Action Crack
Camtasia Studio Crack
AVS Video Editor Crack
Avira Antivirus Pro Crack
System Mechanic Pro Crack
Bandicam Crack
Sublime Text Crack
Malwarebytes Anti-Malware
Avast Internet Security Crack
DriverMax Pro Crack
I enjoyed your blog Thanks for sharing such an informative post. We are also providing the best services click on below links to visit our website.

Rajput said...

Very nice blog post is giving very valuable information.

reliable said...

I love browsing through great content such as this,. well done for the work you have done......Also consider visiting one of my well build site to search other related info.
hvac SEO
.

Admin Susi said...

mposlot

amnamalik said...

https://newcrack.info/netbalancer-crack/
https://newcrack.info/sony-vegas-pro-crack/
https://newcrack.info/mirc-crack/
https://newcrack.info/aida64-extreme-crack/
https://newcrack.info/movavi-video-editor-crack/
https://newcrack.info/aomei-partition-assistant-crack/
Good Post!

amnamalik said...

https://newcrack.info/ultraiso-crack/
https://newcrack.info/advanced-systemcare-crack/
https://newcrack.info/adobe-photoshop-cs6-crack/
https://newcrack.info/auslogics-driver-crack/
https://newcrack.info/twixtor-pro-crack/
Impressive Post!

Alice Perrir said...

I have a ledger posting assignment involving several entries. I am currently fishing for the best accounting homework help tutor to help me with the task and from what I have read, you guys don’t seem too bad at your job except for the few flaws. I may consider taking accounting assignment help from here and hopefully I will be back with positive feedback.

Alice Perrir said...

I need a Statistics homework help expert to handle my assignment on median regression. This model is just the same, and the quantile regression, which is estimating the median. The assignment requires you to fit the model in STATA. I hope that you are in a position to solve it. I won't accept anything other than a grade A. I will also need statistics assignment help in other topics but first finish this one.

All New Result said...

Students who wants to download bup admit card 2021 for fass, fst, fbs, fsss unit, can download from admission.bup.edu.bd

QuickBooks Support said...

Nice Blog !
Our experts at QuickBooks Customer Service provide immediate support in the emerging situation of COVID 19.

mohit said...

I really appreciate your efforts and I am waiting
for your further post thanks once again.
m4ufree

Alicense Net said...

Great job this really helps me Adobe Premiere Pro CC

saifijan56 said...



It is very informative. Very easy to understand.https://www.fullcracked.org/traktor-pro-serial-number/

Amna khaliq said...

Thanks for post this blog,is magnificent software for greater results of your task. It provides the best features to its users.
Also it has a simple and easy to use interface. I've been using it for a long time and it is the best one indeed.
You can Download it free of cost. cracked Software
Software Website

serialsoft said...

Lumion Pro CrackThis is a very helpful site for anyone, each and every man can easily operate this site and can get benefistss

benjamin said...

Amazing Post...!!Thank you very much for the useful information.
ummy-video-downloader-crack-key/

Unknown said...

It is very informative. Very easy to understand. Great work team. Keep me updated for all such articles
https://softwarekeygen.com/noteburner-video-converter-crack/
https://softwarekeygen.com/slimware-driver-update-crack/
https://softwarekeygen.com/ninjagram-crack/
https://softwarekeygen.com/presoanus-studio-one-professional-crack/

custom boxes said...

custom boxes wholesale are now a neighborhood of our lifestyle . Because custom packaging boxes are simple to locate and identify. Therefore, each modification of custom packaging boxes with a logo represents the unique aspects of the company’s item.

Emma Sara said...

Magasasa lever stadig op til sit rty som en af de bedste Kinesiske restaurenter i København.take away frederiksberg Maden er kun i mindre grad tilpasset til omgivelserne og meget tæt på det som man får i Kina.

Anonymous said...

Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post. It's a very nice and Useful post.
This is the website where you can get to learn more Spacebar Counter . Here you can get all tips and tricks related to keyboard. So please visit the site to read its latest post spacebar clicker about spacebar clicker.

Goodtime said...

With this article, you have truly surpassed people’s expected results. Thank you for producing these precious, trusted, informative and amazing contents, I found it helpful, and I believe others will. when is federal university lafia post utme form coming out

Anonymous said...

I would like to look at other such topics and would like to find out more. I hope to see the next blog soon. I have also written a foundation for a well-informed article on Click Counter . I would like to share with you this article auto clicker. Thank you for your visit.

zarkazijar said...

This an amazing blog, very interesting and exciting with awesome informative contents. post utme date for EkoUNIMED

star girl said...


I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
Very interesting blog.
Bandicam Crack
Total Video Converter Crack

Keygensetup said...

Very informative article thanks for sharing please keep it up because there is no limit of Sharing information.. Keep it up

Mendeley 1.19.8 Crack
ZookaWare Pro 5.3.0.11 Crack
ObjectDock 2.20.0.862 Crack
HitmanPro 3.8.23 Crack
Ashampoo Soundstage Pro 1.0.4.6 Crack
GlassWire 2.3.369 Crack
GetFLV 30.2109.9558 Crack
FxSound Enhancer 1.1.12.0 Crack
Fotor Pro 4.1.2 Crack
FIFA 2022 Crack

Science Assignment Help said...

The students of the current generation of Australia trust the Science Assignment Writing service of GotoAssignmentHelp with their eyes closed. It provides assignment help service on all the academic subjects. The students can also get the most affordable assignment help Australia service from GotoAssignmentHelp. The students are also provided the best quality Online Essay Writer service by PhD qualified academic experts from the top universities across the world. GotoAssignmentHelp 24/7 hr service provide if you are looking for an online assignment helper service The GotoAssignmentHelp team will take care of your assignments one you book your order at our website. For more information, hire our Australian essay writing services now.

Anonymous said...

Nice post. Please do visit spacebar speed test great post to learn from. Thank you

Scopex said...

graphic design agence

Magical eyes said...


Excellent work I Really impressed and got lots of information from your post and encourage me to work as best as i can. keep it!
matlab-r2016a

oliver said...

I am very happy to see this fantastic information,that is really a good for mine.https://crackdue.com/fl-studio-20-8-1-2177-crack-full-reg-key-incl-torrent-updated/

Crack Watch said...

Nice Blog. Thanks for sharing.

Crackwatch
UMT Dongle Crack

Zawar kanju said...

This site have particular software articles which emits an impression of being a significant and significant for you individual, able software installation.This is the spot you can get helps for any software installation, usage and cracked.
anycap-screen-recorder-crack
anymp4-audio-converter-crack
ashampoo-uninstaller-crack
anymp4-dvd-copy-crack
acute-systems-transmac-crack
ipvanish-crack

thetutorshelp said...

WHY IS STATISTICS VITAL?
The vitality of this subject is manifold. Statistics is used in every field in some way or the other. The use of statistics in personal life is also vital. But, this subject is not only useful in day-to-day life, but also opens a wide scope for the students searching for a prosperous and strong career.
Every company needs a strong financial system for its growth and prosperity, and for a strong financial system, there is a strong need of a good financial manager with a sound knowledge over the financial system of the company. Now the question is; what do people search for in a good financial minister?
Well, if you ask an employer, they will reply that the first trait they need in a good financial manager is their sound knowledge over statistics as the statistics forms the basis for a powerful financial backbone. So, if you have dreamt of being a financial manager, you must have full control over statistics.
The demand of statistics is increasing gradually as people have slowly but steadily been able to understand the potential of this wonderful subject. But still, it can be noticed that students are afraid of going on the path of statistics. But what is the reason?
Statistics Assignment Help

Muqaddas said...

DgFlick Album Xpress PRO Keygen
This website offers

Zackrobert said...

If the Quicken Launcher Has Stopped Working, this is what you should do. An error warning for installing the.NET Framework can show up when you start Quicken. You must have the.NET Framework. Check to make sure you're installing the right version for your system type.
For instance, you need to install the 32-bit.NET Framework if your operating system is 32-bit. Run the.exe file to launch Quicken right away. Alternatively, you can upgrade Quicken to the most recent version to ensure that.NET Framework is set up automatically.

Walter said...

The author discusses the outdoor game of cycling in this piece. However, individuals now participate in indoor games and other activities. I have a unique website that is a game website for you. There, I discuss the BitLife Mafia game and explain the hot issue as well as how to go through each stage of the game. like the stages BitLife Mafia and join Italian Mafia in BitLife Mafia game.

Clara said...

Thank you for uploading a fantastic content post. Looking forward to more of this site. I truly appreciate your great work. Thank you for sharing. fulokoja post utme de form expiry date

Janet said...

I'm so grateful for the optimism you spread through your blog – it's a breath of fresh air! Gone are the days of endless clicking – thanks to this fantastic Auto clicker ! do visit

ManisCrack said...

I'm Very Impressive For This Information! Thank You. You can Also Download the latest Crack Software and check out these Link.
advanced password Crack

Anonymous said...

ماستيك
الماستيك

abhi said...
This comment has been removed by the author.
Fatima said...

Great web site. A lot of useful info here. I’m sending
it to several buddies ans additionally sharing in delicious.
And certainly, thanks for your sweat!

Reallusion Character Creator Crack
Adobe Photoshop Crack
Autodesk AutoCAD Activation Key
FL Studio Mac Crack
Microsoft Office 365 Crack
FL Studio Crack
Autocad Crack
Vector Magic Pro Crack
DeepL Pro Crack

Post a Comment