source: trunk/minix/commands/httpd/config.h@ 21

Last change on this file since 21 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.5 KB
Line 
1/* config.h
2 *
3 * This file is part of httpd.
4 *
5 * 02/26/1996 Michael Temari <Michael@TemWare.Com>
6 * 07/07/1996 Initial Release Michael Temari <Michael@TemWare.Com>
7 * 12/29/2002 Michael Temari <Michael@TemWare.Com>
8 * 07/04/2003 Al Woodhull <awoodhull@hampshire.edu>
9 * 02/08/2005 Michael Temari <Michael@TemWare.Com>
10 *
11 */
12
13#define VERSION "Minix httpd 0.994"
14
15struct authuser {
16 char *user;
17 struct authuser *next;
18};
19
20struct auth {
21 char *name;
22 char *desc;
23 int urlaccess;
24 char *passwdfile;
25 struct authuser *users;
26 struct auth *next;
27};
28
29struct msufx {
30 char *suffix;
31 struct mtype *mtype;
32 struct msufx *snext;
33 struct msufx *tnext;
34};
35
36struct mtype {
37 char *mimetype;
38 struct msufx *msufx;
39 struct mtype *next;
40};
41
42struct vhost {
43 char *hname;
44 char *root;
45 struct vhost *next;
46};
47
48struct vpath {
49 char *from;
50 char *to;
51 struct auth *auth;
52 int urlaccess;
53 struct vpath *next;
54};
55
56struct dirsend {
57 char *file;
58 struct dirsend *next;
59};
60
61/* urlaccess bits */
62
63#define URLA_READ 1
64#define URLA_WRITE 2
65#define URLA_EXEC 4
66#define URLA_HEADERS 8
67
68#define HTTPD_CONFIG_FILE "/etc/httpd.conf"
69
70_PROTOTYPE(int readconfig, (char *cfg_file, int testing));
71
72extern struct mtype *mtype;
73extern struct msufx *msufx;
74extern struct vhost *vhost;
75extern struct vpath *vpath;
76extern struct dirsend *dirsend;
77extern struct auth *auth;
78extern struct auth *proxyauth;
79extern char *direxec;
80extern char *srvrroot;
81extern char *LogFile;
82extern char *DbgFile;
83extern char *User;
84extern char *Chroot;
Note: See TracBrowser for help on using the repository browser.