Page 1 of 2 12 LastLast
Results 1 to 15 of 26

Thread: running a second webserver

  1. #1

    Thumbs up running a second webserver

    I bought this wl500g a couple of weeks ago and it runs very smoothly. I use Oleg's CR3 firmware and got my printer working instantly (hp940C). My external USB HD (2,5) runs as an ftp disk, and wireless is running like a charm. While everything is setup nicely it's time to discover more features. Therefore I've got a couple of questions which you can probably answer for me (please keep in mind I'm not a Linux guru ;-).

    1) I read in this forum that it is possible to use the httpd daemon as a webserver to host your own website as well. So I created a WWW on the USB HD and ran kill httpd. placed my own asp in the www dir and then restarted the daemon. It makes my asp available for the outside world, but only accessible under the admin account. Besides that it stopped my router's GUI working properly. So I was wondering what is the right way to do this without to dissable the routers GUI. Do I need to run another instance of Httpd?How do I do this and make it accessible without the Admin account.

    2) On another location in this forum I read that some people were running their routersoftware on external HD. What are the advantages of this?

    3) My last question is, is it possible to preconfigure HD amount per ftpuser? Besides that I want to create one directory with readonly access available for all users. So not the anonymous users. Can you tell me how?

    Thanks in advance and keep up the good work guys!!

    greetz Ronin
    amd2600 Ati 9700pro wl500g and lots more.....

  2. #2
    Join Date
    Mar 2004
    Location
    Norway
    Posts
    26
    Not certain in I understood correctly, but here's an attempt to answer question 3.

    I haven't found/heard anything about quotas on the ftp server in the Asus router. The ftp daemon used is 'stupid-ftpd'. Source and more info is available at http://sourceforge.net/projects/stupid-ftpd/.

    If you disable anonymous access and create a user 'anonymous' with password '*', this will work exacly like a real anonymous user, only you can set whatever access rights you want, including 'Read Only'. The new anonymous user will have access to the '/ftp_pub/' folder.
    That's probably the closest you'll get to creating a shared read-only folder.

    Royan

  3. #3
    Hi Royan,

    This is partially what I meant. However after doing some workarounds it works.

    Thanxz a lot!

    I still wonder however if it's possible to run a second instance of the webserver. Or add an additional webserver. I dunno what's best.

    I just want to make it possible to run my own website from the usb disk without having to reveal the admin user/pw. And keep the asus GUI alive.

    I can't imagine OLEG or antiloop (or U) don't have an answer for this ;-) keeping in mind I'm not a linux guru .
    amd2600 Ati 9700pro wl500g and lots more.....

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Compile separate http server and use it.

  5. #5

    How to run httpd? got "err error" messages

    Hi,

    first: special thanks to Oleg and your firmware releases!

    Second: My Problem :/

    I tried to run httpd with my own configuration but all I got is an "err error" message.

    my (very simple) httpd.conf:
    Port 80
    ServerType standalone
    ServerRoot /mnt/usbfs/web

    where /mnt/usbfs is a fat32 partition on an USB stick, which ist writable and readable

    when I start httpd via:
    killall httpd && httpd -c /mnt/usbfs/httpd.conf
    I got these "err error" messages...

    Any ideas?

    Thanks in advance
    Martin

  6. #6
    Oleg,

    What I actually want is the GUI for maintanance on the router on port 8080 and a www dir with website on my USB HD available for everyone (running busybox_httpd).

    any help on setting this up? and iptables?

    thank you

    Ronin
    amd2600 Ati 9700pro wl500g and lots more.....

  7. #7
    Excactly the same problem here!

  8. #8
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Guys, I've no experience on running busybox httpd. Sorry.
    If you want to share /mnt/usbfs you should probably launch it like this:
    Code:
    busybox_httpd -p 9000 -h /mnt/usbfs
    and the you should be able to access it from the inside like this: http://my.router:9000/
    To open it to a WAN you should add this line to your firewall scripts:
    Code:
    iptables -I INPUT -p tcp --dport 9000 --syn -j ACCEPT
    Hope this helps.

  9. #9
    Oleg,

    Thanxz a lot!!! that's what I meant! now maybe I can run my webcam.asp and make it available for everyone!

    you r the master ;-)
    amd2600 Ati 9700pro wl500g and lots more.....

  10. #10
    Thx Oleg, but another little question:

    I want to run my webserver on port 80 an the "normal" httpd on another port. So my question is, where to set the port of the standard httpd?

    Thx,
    Martin

  11. #11
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    I have no idea. You may need to try running it with -p switch.

  12. #12
    unfortunately the -p switch does not override the httpd standard port (80) setting :/

    (I changed the httpserver script in /init )

  13. #13
    what is it that u changed to the script? and where?
    amd2600 Ati 9700pro wl500g and lots more.....

  14. #14
    This:
    Code:
    cd /web
    if [ -f "/etc/linuxigd/WAN_IF" ]; then
            . /etc/linuxigd/WAN_IF
            httpd -p 8080 $WAN_IF
    else
            httpd -p 8080
    fi
    But with no effect :/

  15. #15
    Nobody found a souloution??

Page 1 of 2 12 LastLast

Similar Threads

  1. running php on wl500g
    By ronin in forum WL-500g Q&A
    Replies: 55
    Last Post: 06-03-2006, 09:36
  2. samba, ftp, I can`t get it running. PL Help!
    By atomilein in forum WL-500g Q&A
    Replies: 0
    Last Post: 23-04-2005, 08:51
  3. Samba running
    By erik_bies in forum WL-500g Custom Development
    Replies: 48
    Last Post: 23-01-2005, 20:16

Posting Permissions

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