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
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.
$ less /etc/httpd.conf
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
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!