44 |
int times_used; |
int times_used; |
45 |
}; |
}; |
46 |
|
|
47 |
|
struct alias { |
48 |
|
char *fakename; /* URI path to file */ |
49 |
|
char *realname; /* Actual path to file */ |
50 |
|
int type; /* ALIAS, SCRIPTALIAS, REDIRECT */ |
51 |
|
int fake_len; /* strlen of fakename */ |
52 |
|
int real_len; /* strlen of realname */ |
53 |
|
struct alias *next; |
54 |
|
}; |
55 |
|
|
56 |
|
typedef struct alias alias; |
57 |
|
|
58 |
typedef struct _virthost { |
typedef struct _virthost { |
59 |
char *ip; /* This virthost will be visible in this IP */ |
char *ip; /* This virthost will be visible in this IP */ |
60 |
char *host; /* The hostname of the virtual host */ |
char *host; /* The hostname of the virtual host */ |
64 |
int ip_len; /* strlen of IP */ |
int ip_len; /* strlen of IP */ |
65 |
int host_len; /* strlen of hostname */ |
int host_len; /* strlen of hostname */ |
66 |
int document_root_len; /* strlen of document root */ |
int document_root_len; /* strlen of document root */ |
67 |
|
alias *alias_hashtable[ALIAS_HASHTABLE_SIZE]; /* aliases in this virthost */ |
68 |
struct _virthost *next; |
struct _virthost *next; |
69 |
} virthost; |
} virthost; |
70 |
|
|
|
struct alias { |
|
|
char *fakename; /* URI path to file */ |
|
|
char *realname; /* Actual path to file */ |
|
|
int type; /* ALIAS, SCRIPTALIAS, REDIRECT */ |
|
|
int fake_len; /* strlen of fakename */ |
|
|
int real_len; /* strlen of realname */ |
|
|
struct alias *next; |
|
|
}; |
|
|
|
|
|
typedef struct alias alias; |
|
|
|
|
71 |
struct request { /* pending requests */ |
struct request { /* pending requests */ |
72 |
int fd; /* client's socket fd */ |
int fd; /* client's socket fd */ |
73 |
GNUTLS_STATE ssl_state; |
GNUTLS_STATE ssl_state; |
109 |
time_t last_modified; /* Last-modified: */ |
time_t last_modified; /* Last-modified: */ |
110 |
|
|
111 |
char local_ip_addr[NI_MAXHOST]; /* for virtualhost */ |
char local_ip_addr[NI_MAXHOST]; /* for virtualhost */ |
112 |
|
char *hostname; |
113 |
char document_root[MAX_PATH_LENGTH + 1]; |
char document_root[MAX_PATH_LENGTH + 1]; |
114 |
char user_dir[MAX_PATH_LENGTH + 1]; |
char user_dir[MAX_USER_DIR_LENGTH + 1]; |
115 |
|
|
116 |
/* CGI vars */ |
/* CGI vars */ |
117 |
|
|