WEB server

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 06:42, 20 February 2006 (edit)
194.249.53.249 (Talk)

← Previous diff
Revision as of 07:07, 20 February 2006 (edit) (undo)
194.249.53.249 (Talk)

Next diff →
Line 1: Line 1:
DD-WRT runs a small httpd server used for configuring the router. This guide will show how to use it to serve you own pages to your LAN or to the world. DD-WRT runs a small httpd server used for configuring the router. This guide will show how to use it to serve you own pages to your LAN or to the world.
-Please remember that opening WEB server to the world could mean potential security problem.+Please remember that opening WEB server to the world could mean potential security problem.<br>
 +<br>
 +'''Assumptions'''<br>
 +- You have telnet and SSH enabled on your router.<br>
 +- You can send files via SSH to and from your desktop (e.g with WinSCP)<br>
 +- You have jffs enabled and enough free space to store your files or you have working mmc mod.<br>
 +- I will assume you are installing to the jffs partition. If you are not, replace jffs with mmc or some other folder<br>
 +- You have the "'''Enable Info Site'''" enabled (Administration -> Management -> WEB Access)<br>
 +- You '''MUST''' name your index file '''Info.htm'''<br>
 +<br>
 +'''How will this work?'''<br>
 +- We will move the router's web admin to port 81<br>
 +- We will start the your WEB server at port 80<br>
 +- Optional: we will open port 80 to the world<br>
 + 
 + 
 +'''1)''' Copy your files to the router, i.e. to the /jffs folder<br>
 +'''2)''' Open web admin Administration -> Diagnostics, press "Run"<br>
 +'''3)''' Enter these lines to the Commands field:<br>
 + 
 + killall httpd
 + cd /www
 + httpd -p 81 -h /www
 + cd /jffs
 + httpd -h /jffs
 + 
 +Press "Save Startup"

Revision as of 07:07, 20 February 2006

DD-WRT runs a small httpd server used for configuring the router. This guide will show how to use it to serve you own pages to your LAN or to the world.

Please remember that opening WEB server to the world could mean potential security problem.

Assumptions
- You have telnet and SSH enabled on your router.
- You can send files via SSH to and from your desktop (e.g with WinSCP)
- You have jffs enabled and enough free space to store your files or you have working mmc mod.
- I will assume you are installing to the jffs partition. If you are not, replace jffs with mmc or some other folder
- You have the "Enable Info Site" enabled (Administration -> Management -> WEB Access)
- You MUST name your index file Info.htm

How will this work?
- We will move the router's web admin to port 81
- We will start the your WEB server at port 80
- Optional: we will open port 80 to the world


1) Copy your files to the router, i.e. to the /jffs folder
2) Open web admin Administration -> Diagnostics, press "Run"
3) Enter these lines to the Commands field:

killall httpd
cd /www
httpd -p 81 -h /www
cd /jffs
httpd -h /jffs

Press "Save Startup"