Results 1 to 8 of 8

Thread: log-Datei für busybox_httpd

  1. #1

    log-Datei für busybox_httpd

    Hallo,

    logt der einfache Webserver busybox_httpd eigentlich irgendwo die Zugriffe mit bzw. kann ich einstellen, dass irgendwo ein access.log (mehr will ich eigentlich gar nicht) mitgeschrieben wird? Ich starte den Server momentan einfach in der post-boot mit:

    busybox_httpd -p 81 -h /tmp/harddisk/www

    Wenn ich das richtig blicke, müsste ich eine httpd.conf erstellen, dafür gibt es ja einen Schalter. Leider finde ich nirgendwo Syntaxhinweise. So ein Monstrum wie eine Apache-httpd.conf wird hoffentlich nicht vonnöten sein?!

    Noch einfacher wäre ein simpler Schalter ala:

    busybox_httpd -l /opt/etc/httpd.log -p 81 -h /tmp/harddisk/www

    aber den gibt es wohl leider nicht.

  2. #2
    Quote Originally Posted by Topfi View Post
    Hallo,

    logt der einfache Webserver busybox_httpd eigentlich irgendwo die Zugriffe mit bzw. kann ich einstellen, dass irgendwo ein access.log (mehr will ich eigentlich gar nicht) mitgeschrieben wird? Ich starte den Server momentan einfach in der post-boot mit:

    busybox_httpd -p 81 -h /tmp/harddisk/www

    Wenn ich das richtig blicke, müsste ich eine httpd.conf erstellen, dafür gibt es ja einen Schalter. Leider finde ich nirgendwo Syntaxhinweise. So ein Monstrum wie eine Apache-httpd.conf wird hoffentlich nicht vonnöten sein?!

    Noch einfacher wäre ein simpler Schalter ala:

    busybox_httpd -l /opt/etc/httpd.log -p 81 -h /tmp/harddisk/www

    aber den gibt es wohl leider nicht.
    *push*

    Hat denn niemand eine Idee?

  3. #3
    Join Date
    Jul 2006
    Location
    AUT
    Posts
    248
    Hi,
    Code:
    * httpd.conf has the following format:
     *
     * H:/serverroot     # define the server root. It will override -h
     * A:172.20.         # Allow address from 172.20.0.0/16
     * A:10.0.0.0/25     # Allow any address from 10.0.0.0-10.0.0.127
     * A:10.0.0.0/255.255.255.128  # Allow any address that previous set
     * A:127.0.0.1       # Allow local loopback connections
     * D:*               # Deny from other IP connections
     * E404:/path/e404.html # /path/e404.html is the 404 (not found) error page
     * I:index.html      # Show index.html when a directory is requested
     *
     * P:/url:[http://]hostname[:port]/new/path
     *                   # When /urlXXXXXX is requested, reverse proxy
     *                   # it to http://hostname[:port]/new/pathXXXXXX
     *
     * /cgi-bin:foo:bar  # Require user foo, pwd bar on urls starting with /cgi-bin/
     * /adm:admin:setup  # Require user admin, pwd setup on urls starting with /adm/
     * /adm:toor:PaSsWd  # or user toor, pwd PaSsWd on urls starting with /adm/
     * .au:audio/basic   # additional mime type for audio.au files
     * *.php:/path/php   # run xxx.php through an interpreter
     *
     * A/D may be as a/d or allow/deny - only first char matters.
     * Deny/Allow IP logic:
     *  - Default is to allow all (Allow all (A:*) is a no-op).
     *  - Deny rules take precedence over allow rules.
     *  - "Deny all" rule (D:*) is applied last.
     *
     * Example:
     *   1. Allow only specified addresses
     *     A:172.20          # Allow any address that begins with 172.20.
     *     A:10.10.          # Allow any address that begins with 10.10.
     *     A:127.0.0.1       # Allow local loopback connections
     *     D:*               # Deny from other IP connections
     *
     *   2. Only deny specified addresses
     *     D:1.2.3.        # deny from 1.2.3.0 - 1.2.3.255
     *     D:2.3.4.        # deny from 2.3.4.0 - 2.3.4.255
     *     A:*             # (optional line added for clarity)
     *
     * If a sub directory contains a config file it is parsed and merged with
     * any existing settings as if it was appended to the original configuration.
     *
     * subdir paths are relative to the containing subdir and thus cannot
     * affect the parent rules.
     *
     * Note that since the sub dir is parsed in the forked thread servicing the
     * subdir http request, any merge is discarded when the process exits.  As a
     * result, the subdir settings only have a lifetime of a single request.
     *
     * Custom error pages can contain an absolute path or be relative to
     * 'home_httpd'. Error pages are to be static files (no CGI or script). Error
     * page can only be defined in the root configuration file and are not taken
     * into account in local (directories) config files.
     *
     * If -c is not set, an attempt will be made to open the default
     * root configuration file.  If -c is set and the file is not found, the
     * server exits with an error.
    hth, schufti
    find all my MGB100 files here, pass: mgb100

  4. #4
    Dankeschön. Damit habe ich wenigstens mal eine Beschreibung der httpd.conf. Eine access.log kann ich dann wohl nicht definieren, schade.

  5. #5
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Mal ganz blöd: Was bedeutet hth?
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  6. #6
    hope, this helps...

  7. #7
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Autsch *mitderflachenhandgegendiestirnschlag*
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  8. #8
    Was empfiehlt sich denn alternativ als schlanker Webserver? Er sollte nur wie der busybox_httpd mit cgi-Skripten umgehen und Zugriffe loggen können. Und wenn es geht, nicht so viel anderes Zeug installieren. Auf dem Kästchen laufen neben ftp, Samba und einem Drucker noch wizd und mediatomb.

    ipkg und /opt-Struktur habe ich eingerichtet.

Similar Threads

  1. 1.0.7.8 Log configuration
    By eznet in forum WL-700g Firmware Discussion
    Replies: 4
    Last Post: 08-01-2009, 22:38
  2. Replies: 7
    Last Post: 09-12-2008, 19:19
  3. vnstat - Network traffic monitor with log
    By WLAN-Fan in forum German Discussion - Deutsch (DE)
    Replies: 4
    Last Post: 22-09-2008, 12:53
  4. Log File WL500G (system log)
    By henk_wl500g in forum Dutch Discussion - Nederlands
    Replies: 3
    Last Post: 18-07-2008, 09:13
  5. icmp bloking ...
    By Kronos in forum WL-500g Q&A
    Replies: 0
    Last Post: 03-05-2004, 02:40

Posting Permissions

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