File: README

package info (click to toggle)
dhttpd 1.02a-18
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 256 kB
  • ctags: 55
  • sloc: cpp: 622; sh: 185; makefile: 43
file content (71 lines) | stat: -rw-r--r-- 2,044 bytes parent folder | download
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
DHTTPD, file README:

***************  Quick Getting Started for Linux  *********************

  1. `cd src`
  2. IMPORTANT!  Modify the config.hh to match your system.
  3. do a "make clean; make"

***********************************************************************


***************  More detailed instructions for Expert Users **********

To get this compiled, you should follow these steps:

	1. `cd src`

	2. Edit the config.hh file and set variables
		a. change WEBDIRPREFIX to the location of your webpage
		   directory, be sure it begins with a slash, but that it
		   doesn't end with one.
			Good:
				"/var/www"
				"/web"
				"/home/dbartold/public_html"

			Insane:
				"/"
				"rudolf"
				"~george/web"
				"/porking/pig/"

		b. set your default web port, if super user, make it 80,
		   otherwise 8080

		c. if you'll be running dhttpd suid and want dhttpd to
		   set user id itself, set UID and GID to the user number
		   and group number, respectively, of the user

		d. if you want dhttpd to server more (or fewer) than
		   100 requests at once, change MAXCHILDPROC

	3. Determine your OS and copy the "Makefile.[whatever]" on top of
	   "Makefile" and do a "make clean; make" and you're set :)

***********************************************************************


***************  Customization and Commandline Options ****************

There are two command line options available:
	-p [portnum]	-- change the port the web page server runs on
	-h		-- get commandline help

You may customize the error messages sent to the browser when dhttpd
cannot locate or access a file.  You do this by creating a special
error message file for each error type in your WEBDIRPREFIX directory.

These files are:
	..ERROR400.html -- Bad request (internal browser error)
	..ERROR403.html -- Forbidden (no access rights)
	..ERROR404.html	-- File not Found


***********************************************************************


Have fun!
	- David A. Bartold
	  (mailto:dbartold@ccsi.com)
	  (http://www.ccsi.com/~dbartold)