mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
. Tell people to use Makefile for building.
. Make a few things clearer by improving examples.
This commit is contained in:
parent
af46f81440
commit
e18f533945
12
trunk/README
12
trunk/README
@ -4,11 +4,8 @@ darkhttpd
|
|||||||
Compiling
|
Compiling
|
||||||
---------
|
---------
|
||||||
|
|
||||||
On Solaris:
|
Run make and follow the prompts:
|
||||||
$ cc darkhttpd.c -lxnet -o darkhttpd
|
$ make
|
||||||
|
|
||||||
Everywhere else:
|
|
||||||
$ cc darkhttpd.c -o darkhttpd
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -22,7 +19,7 @@ Serve ~/public_html on port 8081:
|
|||||||
$ ./darkhttpd ~/public_html --port 8081
|
$ ./darkhttpd ~/public_html --port 8081
|
||||||
|
|
||||||
Only bind to one IP address (useful on multi-homed systems):
|
Only bind to one IP address (useful on multi-homed systems):
|
||||||
$ ./darkhttpd ~/public_html --addr 127.0.0.1
|
$ ./darkhttpd ~/public_html --addr 192.168.0.1
|
||||||
|
|
||||||
Serve at most 4 simultaneous connections:
|
Serve at most 4 simultaneous connections:
|
||||||
$ ./darkhttpd ~/public_html --maxconn 4
|
$ ./darkhttpd ~/public_html --maxconn 4
|
||||||
@ -49,4 +46,5 @@ Use acceptfilter (FreeBSD only):
|
|||||||
$ kldload accf_http
|
$ kldload accf_http
|
||||||
$ ./darkhttpd /var/www/htdocs --accf
|
$ ./darkhttpd /var/www/htdocs --accf
|
||||||
|
|
||||||
Commandline options can be combined.
|
Commandline options can be combined:
|
||||||
|
$ ./darkhttpd ~/public_html --port 8080 --addr 127.0.0.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user