public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Florian Philipp <lists@binarywings.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] The LIGHTEST web server (just for serving files) ?
Date: Sat, 12 Nov 2011 10:14:27 +0100	[thread overview]
Message-ID: <4EBE38F3.2000005@binarywings.net> (raw)
In-Reply-To: <CAA2qdGUdbUre4CB34dtr6gs5hayz2QuPMGL-ceU+kT6UAFjUqg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2321 bytes --]

Am 12.11.2011 10:01, schrieb Pandu Poluan:
> On Sat, Nov 12, 2011 at 15:46, Nilesh Govindarajan <contact@nileshgr.com> wrote:
>> On Sat 12 Nov 2011 01:54:10 PM IST, Pandu Poluan wrote:
>>> What is the *LIGHTEST* web server package you know for gentoo?
>>>
>>> I just want to serve the distfiles, so no CGI / PHP /
>>> whathaveyouscripting support is needed.
>>>
>>> Preferably, with logging so I can see which packages I missed, but not
>>> necessary.
>>>
>>> Rgds,
>>
>> nginx.
>> You can disable fastcgi/etc using use flags.
>>
> 
> What about www-servers/fnord ?
> 
> Its website[1] claims that its binaries are less than 20 kB[2]
> 
> [1] http://www.fefe.de/fnord/
> [2] http://www.fefe.de/fnord/others.html
> 
> Rgds,

Talking about small: `/bin/busybox httpd`

I goes without saying that this is not meant to be web-facing.

Most things are explained in the --help output but the config file
format is only explained in a source code comment. See below:

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.

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  reply	other threads:[~2011-11-12  9:15 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-12  8:24 [gentoo-user] The LIGHTEST web server (just for serving files) ? Pandu Poluan
2011-11-12  8:46 ` Nilesh Govindarajan
2011-11-12  9:01   ` Pandu Poluan
2011-11-12  9:14     ` Florian Philipp [this message]
2011-11-12 11:55       ` [gentoo-user] The LIGHTEST web server (just for serving files)? Mick
2011-11-12 12:40         ` Pandu Poluan
2011-11-12 13:01           ` Mick
2011-11-12 13:13             ` Stéphane Guedon
2011-11-12 13:22             ` Pandu Poluan
2011-11-12 13:11           ` YoYo Siska
2011-11-12 13:23             ` Pandu Poluan
2011-11-14 10:05             ` J. Roeleveld
2011-11-14 10:10               ` microcai
2011-11-14 14:36                 ` Michael Mol
2011-11-14 22:01                   ` v_2e
2011-11-15 18:40                   ` [gentoo-user] " Steven J Long
2011-11-12 13:14           ` [gentoo-user] " Florian Philipp
2011-11-12 13:33             ` Pandu Poluan
2011-11-12 17:05             ` [gentoo-user] " Holger Hoffstaette
2011-11-12 22:01           ` [gentoo-user] " Neil Bothwick
2011-11-13  0:18             ` William Kenworthy
2011-11-12 13:39 ` [gentoo-user] The LIGHTEST web server (just for serving files) ? Ciprian Dorin Craciun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EBE38F3.2000005@binarywings.net \
    --to=lists@binarywings.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox