forked from christianparpart/x0
/
README
74 lines (66 loc) · 2.92 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
-----------------------------------------------------------------------------
x0 - HTTP WEB SERVER AND FRAMEWORK
-----------------------------------------------------------------------------
official website: http://xzero.io/
github: http://github.com/trapni/x0
ohloh: http://www.ohloh.net/p/x0
x0 is a low-latency scalable HTTP web server and web service framework
written in modern C++.
-----------------------------------------------------------------------------
FEATURES
-----------------------------------------------------------------------------
- HTTP/1.1, including pipelining
- thin and clean core API with powerful plugin system
- fully asynchronous response content generation support
- response output filter API
- zero-copy networking optimization through sendfile() system call
- transmitting of static files with partial response support and cache-friendly
- instant mode (configuration-less basic HTTP serving)
- flow-based configuration system, just-in-time compiled into native CPU instructions
- automatic directory indexing
- customizable error pages
- on-the-fly executable upgrade with gracefully finishing currently active requests.
- CGI/1.1 support (plugin)
- FastCGI support (plugin)
- HTTP reverse proxy support (plugin)
- name based virtual hosting (plugin)
- SSL connection encryption (plugin)
- SSL Server Name Indication (SNI) extension
- dynamic content compression (plugin)
- basic authentication (plugin)
- advanced dynamic load balancer (plugin)
- supporting different backend protocols (HTTP and FastCGI)
- supporting different transport protocols (TCP/IP, and UNIX Domain Sockets).
- advanced health monitoring
- JSON API for retrieving state, stats,
and reconfiguring clusters (including adding/updating/removing backends).
- client side routing support
- sticky offline mode
- request path aliasing (plugin)
- automatic directory listing generation (plugin)
- apache-style access log (plugin)
- user-directory support (plugin)
- browser match support (plugin)
- customized Expires and Cache-Control response header control (plugin)
-----------------------------------------------------------------------------
INSTALLATION REQUIREMENTS:
-----------------------------------------------------------------------------
- gcc >= 4.6.0 (for building only)
- libev >= 4.0
- LLVM 3.0 or 3.1
- cmake (for building only)
- zlib (optional & recommended, for compression)
- bzip2 (optional & recommended, for compression)
- gnutls (optional & recommended, for SSL/TLS encryption)
- cppunit (optional, for unit testing)
-----------------------------------------------------------------------------
HOW TO BUILD:
-----------------------------------------------------------------------------
git clone git://github.com/trapni/x0.git
cd x0/
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=debug
make
sudo make install
`pwd`/src/x0d --instant=`pwd`/www/htdocs,8080
# have fun hacking.
vim:ts=2:sw=2:et