FritzBox, Anzeigen einer statischen Seite bei Aufruf jedweder Webadresse gewünscht

Wie gesagt, den Apache habe ich schon statisch gelinkt als fertiges Paket gefunden.
 
Evtl. kann man hiawatha, der leichtgewichtiger ist als der apache, auch statisch linken.
 
OK, wenn ich eine IP-Adresse eingebe (im Browser) findet keine DNS-Anfrage statt, und trotzdem erreicht diese eingegebene IP-Adresse auf Grund der Eintragungen in der hostsfile den dnsspoof, der diese eingegebene IP-Adresse dann an eine andere in der hostsfile konfigurierte IP-Adresse, umleitet.
Wieso denn das?
 
Ich weiß auch nicht warum das so ist. Bin noch am testen und suchen. Finde es aber gut, wenn das so funktioniert bzw. möglich ist.
 
Im Anhang das statisch gelinkte binary für hiawatha:
Code:
root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]ldd ./hiawatha[/COLOR]
        not a dynamic executable

root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]./hiawatha -h[/COLOR]
Usage: ./hiawatha [options]
Options: -c <path>: path to where the configrationfiles are located.
         -d: don't fork to the background.
         -h: show this information and exit.
         -k: check configuration and exit.
         -v: show version and compile information and exit.

root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]./hiawatha -v[/COLOR]
Hiawatha v7.8.2
Copyright (C) by Hugo Leisink <[email protected]>

root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]uname -a[/COLOR]
Linux fritz.fonwlan.box [COLOR=red]2.6.13.1[/COLOR]-ohio #2 Sat Jan 29 11:41:02 CET 2011 mips GNU/Linux
EDIT:

Im Anhang auch das statisch gelinkte binary für sighttpd:
Code:
root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]ldd ./sighttpd[/COLOR]
        not a dynamic executable

root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]./sighttpd -h[/COLOR]
Usage: ./sighttpd [options] <port>
A stream ingress HTTP server.

Configuration options
  -f filename       Specify configuration filename [/etc/sighttpd/sighttpd.conf]

Please report bugs to <[email protected]>
 

Anhänge

  • hiawatha.tar.gz
    136.3 KB · Aufrufe: 9
  • sighttpd.tar.gz
    90.6 KB · Aufrufe: 4
Zuletzt bearbeitet:
Super, danke! :)

Werde es aber wohl erst am WE schaffen alles auszuprobieren.
 
Im Anhang auch das statisch gelinkte binary für lighttpd:
Code:
root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]ldd ./lighttpd[/COLOR]
        not a dynamic executable

root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]./lighttpd -h[/COLOR]
lighttpd/1.4.29 (Feb  9 2012 17:18:52) - a light and fast webserver
usage:
 -f <name>  filename of the config-file
 -m <name>  module directory (default: /usr/lib)
 -p         print the parsed config-file in internal form, and exit
 -t         test the config-file, and exit
 -D         don't go to background (default: go to background)
 -v         show version
 -V         show compile-time features
 -h         show this help
EDIT:

Im Anhang auch das statisch gelinkte binary für darkhttpd:
Code:
root@fritz:/var/media/ftp/uStor01/archiv# [COLOR=red]ldd ./darkhttpd[/COLOR]
        not a dynamic executable
Code:
root@fritz:/var/media/ftp/uStor01/archiv#[COLOR=red] ./darkhttpd --help[/COLOR]
darkhttpd/1.8, copyright (c) 2003-2011 Emil Mikulic.
[COLOR=blue]usage[/COLOR]:  [COLOR=red]./darkhttpd /path/to/wwwroot [flags][/COLOR]

flags:  --port number (default: 8080, or 80 if running as root)
                Specifies which port to listen on for connections.

        --addr ip (default: all)
                If multiple interfaces are present, specifies
                which one to bind the listening port to.

        [COLOR=red]--maxconn number [/COLOR](default: system maximum)
                Specifies how many concurrent connections to accept.

        --log filename (default: stdout)
                Specifies which file to append the request log to.

        [COLOR=red]--chroot[/COLOR] (default: don't chroot)
                Locks server into wwwroot directory for added security.

        [COLOR=red]--daemon[/COLOR] (default: don't daemonize)
                Detach from the controlling terminal and run in the background.

        --index filename (default: index.html)
                Default file to serve when a directory is requested.

        --mimetypes filename (optional)
                Parses specified file for extension-MIME associations.

        [COLOR=red]--uid uid/uname, --gid gid/gname[/COLOR] (default: don't privdrop)
                Drops privileges to given uid:gid after initialization.

        --pidfile filename (default: no pidfile)
                Write PID to the specified file.  Note that if you are
                using --chroot, then the pidfile must be relative to,
                and inside the wwwroot.
Code:
root@fritz:/var/mod/root# /var/media/ftp/uStor01/archiv/[COLOR=red]darkhttpd /var/media/ftp/uStor01/www --port 3333[/COLOR]
darkhttpd/1.8, copyright (c) 2003-2011 Emil Mikulic.
[COLOR=red]listening on: http://0.0.0.0:3333/[/COLOR]
1328908369 192.168.138.185 "GET /" 200 2069 "" "Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.24) Gecko/20111101 SUSE/3.6.24-0.2.1 Firefox/3.6.24"
1328908370 192.168.138.185 "GET /favicon.ico" 404 383 "" "Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.24) Gecko/20111101 SUSE/3.6.24-0.2.1 Firefox/3.6.24"
Code:
11540  1043 [COLOR=red]nobody[/COLOR]   S      776   [COLOR=red]1%   0%[/COLOR] darkhttpd /var/media/ftp/uStor01/www --port 3333 --uid nobody --gid nobody
EDIT 2:
Comparison of lightweight web servers
 

Anhänge

  • lighttpd.tar.gz
    181.4 KB · Aufrufe: 6
  • darkhttpd.tar.gz
    54.3 KB · Aufrufe: 1
Zuletzt bearbeitet:
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.