PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/sysutils/busybox/config/httpd.conf

http://github.com/OpenELEC/OpenELEC.tv
Config | 46 lines | 44 code | 2 blank | 0 comment | 0 complexity | 13f31509511e70bf9064232a3e7948ce MD5 | raw file
 1# httpd.conf has the following format:
 2#
 3# H:/serverroot     # define the server root. It will override -h
 4# A:172.20.         # Allow address from 172.20.0.0/16
 5# A:10.0.0.0/25     # Allow any address from 10.0.0.0-10.0.0.127
 6# A:10.0.0.0/255.255.255.128  # Allow any address that previous set
 7# A:127.0.0.1       # Allow local loopback connections
 8# D:*               # Deny from other IP connections
 9# E404:/path/e404.html # /path/e404.html is the 404 (not found) error page
10# I:index.html      # Show index.html when a directory is requested
11#
12# P:/url:[http://]hostname[:port]/new/path
13#                   # When /urlXXXXXX is requested, reverse proxy
14#                   # it to http://hostname[:port]/new/pathXXXXXX
15#
16# /cgi-bin:foo:bar  # Require user foo, pwd bar on urls starting with /cgi-bin/
17# /adm:admin:setup  # Require user admin, pwd setup on urls starting with /adm/
18# /adm:toor:PaSsWd  # or user toor, pwd PaSsWd on urls starting with /adm/
19# .au:audio/basic   # additional mime type for audio.au files
20# *.php:/path/php   # run xxx.php through an interpreter
21#
22# A/D may be as a/d or allow/deny - only first char matters.
23# Deny/Allow IP logic:
24#  - Default is to allow all (Allow all (A:*) is a no-op).
25#  - Deny rules take precedence over allow rules.
26#  - "Deny all" rule (D:*) is applied last.
27#
28# Example:
29#   1. Allow only specified addresses
30#     A:172.20          # Allow any address that begins with 172.20.
31#     A:10.10.          # Allow any address that begins with 10.10.
32#     A:127.0.0.1       # Allow local loopback connections
33#     D:*               # Deny from other IP connections
34#
35#   2. Only deny specified addresses
36#     D:1.2.3.        # deny from 1.2.3.0 - 1.2.3.255
37#     D:2.3.4.        # deny from 2.3.4.0 - 2.3.4.255
38#     A:*             # (optional line added for clarity)
39#
40
41H:/usr/www                   # define the server root. It will override -h
42A:*                          # Allow address from all ip's
43E404:/usr/www/error/404.html # /path/e404.html is the 404 (not found) error page
44I:index.html                 # Show index.html when a directory is requested
45
46*.php:/usr/bin/php-cgi