From e18f533945da8e4b1ef0f5534bd6f14a8ac43795 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Sat, 13 Dec 2003 14:09:05 +0000 Subject: [PATCH] . Tell people to use Makefile for building. . Make a few things clearer by improving examples. --- trunk/README | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/trunk/README b/trunk/README index 33c2042..72dae89 100644 --- a/trunk/README +++ b/trunk/README @@ -4,11 +4,8 @@ darkhttpd Compiling --------- -On Solaris: - $ cc darkhttpd.c -lxnet -o darkhttpd - -Everywhere else: - $ cc darkhttpd.c -o darkhttpd +Run make and follow the prompts: + $ make @@ -22,7 +19,7 @@ Serve ~/public_html on port 8081: $ ./darkhttpd ~/public_html --port 8081 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: $ ./darkhttpd ~/public_html --maxconn 4 @@ -49,4 +46,5 @@ Use acceptfilter (FreeBSD only): $ kldload accf_http $ ./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