Results 1 to 2 of 2

Thread: WL-500gx with openwrt pre-rc5 howto webserver?

  1. #1

    WL-500gx with openwrt pre-rc5 howto webserver?

    Hi all

    This is my first post in here.

    I downloaded and flashed the openwrt image from 18.03.2006 openwrt-brcm-2.4-squashfs.trx (whiterussian, squashfs) successfully.
    Everything up to now works fine, wireless/wpa, lan, shared printer, automounted usb-storage.

    Now I want to set up a small webserver (thought about httpd or lighttpd wihch are both in the ipkg default repo). My problem here is, that there are many tutorials and howto's out there, but they all are somehow pretty much outdated(newest ones I could find were a year old..). Since then syntax and programs and structures have changed a lot I assume, I can't just follow them blindly.

    My situation: a wl500gx accesspoint just as a bridge with a fixed ip, wan port disabled, inside the lan, connected via a router to a cablecom modem to the outside world.
    My ultimate goal is the following: two webservers(different directories, different ports), one for the configuration(webif) and one to set up a calender and a todo list, whichi should be reachable from outside the lan.
    One of these already exists using httpd, the config-webif
    Code:
    $ less /etc/httpd.conf
    /cgi-bin/webif:root:$p$root
    /cgi-bin/webif:admin:$p$root
    Now my first problem is, that there is not much documentation (to be direct: none at all) about httpd(part of busybox) and the use of it. I am pretty sure, it's not that hard to set up a second webserver with the document root on my extern usb2.0port-hdd(30GB) so I could also use images and stuff. But since the httpd.conf is all I have(of which I don't even know what $p and $root is and the people in irc.freenode.net/#openwrt can't help). I don't even know where the port for the first webserver is set(netstat -l shows me port 80 is listening), I realy don't know how to set it up.

    The second point is about security: is it a bad idea to set up a webserver on openwrt that can be reached over a dyndns adress? What should I take care of security-wise?

    On #openwrt one told me, that it doesn't make sense to set up a second webserverprogram(lighttpd), but as I really don't know how to use httpd, because it's nowhere written and the source code here
    http://www.busybox.net/cgi-bin/viewc...4151&view=auto
    didn't really help there, I thought, why not ask here. Maybe someone did already, what I am trying to do.. The advantage of lighttpd would just be, that it has a really great documentation. On the downsize it's a bit larger than httpd.
    I am new to openwrt but I have enought linux-knowledge to set up a server, I put apache on several machines, but on this little router, it's just something different.

    Besides that all I don't want to overload my accesspoint, maybe you guys know some good deamons to control throughput. This is NOT going to be a big webserver! just a calender where I can put stuff from any pc anywhere. I have profund php knowledge but as I said, in this small environement, everything seems a bit different.

    Thanks for your consideration!

    Best regards
    Patrick

  2. #2
    could someone move this thread to Q&A section? sorry, I wrote it in the wrong section(pics&specs)

    thanks
    br
    patrick

Similar Threads

  1. webserver stops after several minutes
    By arnold in forum WL-500g Q&A
    Replies: 0
    Last Post: 07-03-2006, 09:35
  2. webserver benaderen
    By arnold in forum Dutch Discussion - Nederlands
    Replies: 0
    Last Post: 26-02-2006, 12:38
  3. newly installed openwrt, ipkg update error...
    By mutejute in forum WL-HDD Q&A
    Replies: 2
    Last Post: 13-02-2006, 10:23
  4. Webserver not on port outside:80
    By void in forum WL-500g Q&A
    Replies: 1
    Last Post: 17-01-2006, 07:38
  5. Stupid-ftp with webserver, howto?
    By void in forum WL-500g Q&A
    Replies: 0
    Last Post: 16-01-2006, 21:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •