Reorder config.def.h a bit
This commit is contained in:
parent
06eba20e9d
commit
d7cf0d7f57
1 changed files with 5 additions and 3 deletions
|
@ -2,26 +2,28 @@ static const char *host = "localhost";
|
||||||
static const char *port = "80";
|
static const char *port = "80";
|
||||||
static const char *servedir = ".";
|
static const char *servedir = ".";
|
||||||
static const char *docindex = "index.html";
|
static const char *docindex = "index.html";
|
||||||
|
|
||||||
static const char *user = "nobody";
|
static const char *user = "nobody";
|
||||||
static const char *group = "nogroup";
|
static const char *group = "nogroup";
|
||||||
|
|
||||||
static int listdirs = 1;
|
static int listdirs = 1;
|
||||||
static int vhosts = 0;
|
static int vhosts = 0;
|
||||||
static const int maxnprocs = 512;
|
|
||||||
|
|
||||||
|
static const int maxnprocs = 512;
|
||||||
#define HEADER_MAX 4096
|
#define HEADER_MAX 4096
|
||||||
#define FIELD_MAX 200
|
#define FIELD_MAX 200
|
||||||
|
|
||||||
|
/* virtual hosts */
|
||||||
static struct {
|
static struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
const char *regex;
|
const char *regex;
|
||||||
const char *dir;
|
const char *dir;
|
||||||
regex_t re;
|
regex_t re;
|
||||||
} vhost[] = {
|
} vhost[] = {
|
||||||
|
/* canonical host host regex directory */
|
||||||
{ "example.org", "^(www.)example.org$", "/example.org" },
|
{ "example.org", "^(www.)example.org$", "/example.org" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* mime-types */
|
||||||
static const struct {
|
static const struct {
|
||||||
char *ext;
|
char *ext;
|
||||||
char *type;
|
char *type;
|
||||||
|
|
Loading…
Reference in a new issue