Rev | Line | |
---|
[9] | 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 |
|
---|
| 15 | struct authuser {
|
---|
| 16 | char *user;
|
---|
| 17 | struct authuser *next;
|
---|
| 18 | };
|
---|
| 19 |
|
---|
| 20 | struct auth {
|
---|
| 21 | char *name;
|
---|
| 22 | char *desc;
|
---|
| 23 | int urlaccess;
|
---|
| 24 | char *passwdfile;
|
---|
| 25 | struct authuser *users;
|
---|
| 26 | struct auth *next;
|
---|
| 27 | };
|
---|
| 28 |
|
---|
| 29 | struct msufx {
|
---|
| 30 | char *suffix;
|
---|
| 31 | struct mtype *mtype;
|
---|
| 32 | struct msufx *snext;
|
---|
| 33 | struct msufx *tnext;
|
---|
| 34 | };
|
---|
| 35 |
|
---|
| 36 | struct mtype {
|
---|
| 37 | char *mimetype;
|
---|
| 38 | struct msufx *msufx;
|
---|
| 39 | struct mtype *next;
|
---|
| 40 | };
|
---|
| 41 |
|
---|
| 42 | struct vhost {
|
---|
| 43 | char *hname;
|
---|
| 44 | char *root;
|
---|
| 45 | struct vhost *next;
|
---|
| 46 | };
|
---|
| 47 |
|
---|
| 48 | struct vpath {
|
---|
| 49 | char *from;
|
---|
| 50 | char *to;
|
---|
| 51 | struct auth *auth;
|
---|
| 52 | int urlaccess;
|
---|
| 53 | struct vpath *next;
|
---|
| 54 | };
|
---|
| 55 |
|
---|
| 56 | struct 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 |
|
---|
| 72 | extern struct mtype *mtype;
|
---|
| 73 | extern struct msufx *msufx;
|
---|
| 74 | extern struct vhost *vhost;
|
---|
| 75 | extern struct vpath *vpath;
|
---|
| 76 | extern struct dirsend *dirsend;
|
---|
| 77 | extern struct auth *auth;
|
---|
| 78 | extern struct auth *proxyauth;
|
---|
| 79 | extern char *direxec;
|
---|
| 80 | extern char *srvrroot;
|
---|
| 81 | extern char *LogFile;
|
---|
| 82 | extern char *DbgFile;
|
---|
| 83 | extern char *User;
|
---|
| 84 | extern char *Chroot;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.