1 |
Am 12.11.2011 10:01, schrieb Pandu Poluan: |
2 |
> On Sat, Nov 12, 2011 at 15:46, Nilesh Govindarajan <contact@××××××××.com> wrote: |
3 |
>> On Sat 12 Nov 2011 01:54:10 PM IST, Pandu Poluan wrote: |
4 |
>>> What is the *LIGHTEST* web server package you know for gentoo? |
5 |
>>> |
6 |
>>> I just want to serve the distfiles, so no CGI / PHP / |
7 |
>>> whathaveyouscripting support is needed. |
8 |
>>> |
9 |
>>> Preferably, with logging so I can see which packages I missed, but not |
10 |
>>> necessary. |
11 |
>>> |
12 |
>>> Rgds, |
13 |
>> |
14 |
>> nginx. |
15 |
>> You can disable fastcgi/etc using use flags. |
16 |
>> |
17 |
> |
18 |
> What about www-servers/fnord ? |
19 |
> |
20 |
> Its website[1] claims that its binaries are less than 20 kB[2] |
21 |
> |
22 |
> [1] http://www.fefe.de/fnord/ |
23 |
> [2] http://www.fefe.de/fnord/others.html |
24 |
> |
25 |
> Rgds, |
26 |
|
27 |
Talking about small: `/bin/busybox httpd` |
28 |
|
29 |
I goes without saying that this is not meant to be web-facing. |
30 |
|
31 |
Most things are explained in the --help output but the config file |
32 |
format is only explained in a source code comment. See below: |
33 |
|
34 |
httpd.conf has the following format: |
35 |
|
36 |
H:/serverroot # define the server root. It will override -h |
37 |
A:172.20. # Allow address from 172.20.0.0/16 |
38 |
A:10.0.0.0/25 # Allow any address from 10.0.0.0-10.0.0.127 |
39 |
A:10.0.0.0/255.255.255.128 # Allow any address that previous set |
40 |
A:127.0.0.1 # Allow local loopback connections |
41 |
D:* # Deny from other IP connections |
42 |
E404:/path/e404.html # /path/e404.html is the 404 (not found) error page |
43 |
I:index.html # Show index.html when a directory is requested |
44 |
|
45 |
P:/url:[http://]hostname[:port]/new/path |
46 |
# When /urlXXXXXX is requested, reverse proxy |
47 |
# it to http://hostname[:port]/new/pathXXXXXX |
48 |
|
49 |
/cgi-bin:foo:bar |
50 |
# Require user foo, pwd bar on urls starting with /cgi-bin/ |
51 |
/adm:admin:setup |
52 |
# Require user admin, pwd setup on urls starting with /adm/ |
53 |
adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/ |
54 |
.au:audio/basic # additional mime type for audio.au files |
55 |
*.php:/path/php # run xxx.php through an interpreter |
56 |
|
57 |
A/D may be as a/d or allow/deny - only first char matters. |
58 |
Deny/Allow IP logic: |
59 |
- Default is to allow all (Allow all (A:*) is a no-op). |
60 |
- Deny rules take precedence over allow rules. |
61 |
- "Deny all" rule (D:*) is applied last. |
62 |
|
63 |
Regards, |
64 |
Florian Philipp |