aboutsummaryrefslogtreecommitdiff
path: root/httpd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@esdenera.com>2015-02-05 11:39:23 +0100
committerReyk Floeter <reyk@esdenera.com>2015-02-05 11:52:49 +0100
commit2496a64b6cf81b3e41295a1904649e3eb40bd654 (patch)
treef21bf70147e395641e16bca81fae3254f5ce8947 /httpd.h
parenta0f456c3c650c7d5066a64b05a73011ddc12c23a (diff)
downloadhttpd-2496a64b6cf81b3e41295a1904649e3eb40bd654.tar.gz
httpd-2496a64b6cf81b3e41295a1904649e3eb40bd654.zip
Implement the "block/pass" directives for blocking, dropping and redirections.
Diffstat (limited to 'httpd.h')
-rw-r--r--httpd.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/httpd.h b/httpd.h
index fbf125a..24e1f9a 100644
--- a/httpd.h
+++ b/httpd.h
@@ -337,12 +337,14 @@ SPLAY_HEAD(client_tree, client);
#define SRVFLAG_ERROR_LOG 0x00008000
#define SRVFLAG_AUTH 0x00010000
#define SRVFLAG_NO_AUTH 0x00020000
+#define SRVFLAG_BLOCK 0x00040000
+#define SRVFLAG_NO_BLOCK 0x00080000
#define SRVFLAG_BITS \
"\10\01INDEX\02NO_INDEX\03AUTO_INDEX\04NO_AUTO_INDEX" \
"\05ROOT\06LOCATION\07FCGI\10NO_FCGI\11LOG\12NO_LOG\13SOCKET" \
"\14SYSLOG\15NO_SYSLOG\16TLS\17ACCESS_LOG\20ERROR_LOG" \
- "\21AUTH\22NO_AUTH"
+ "\21AUTH\22NO_AUTH\23BLOCK\24NO_BLOCK"
#define TCPFLAG_NODELAY 0x01
#define TCPFLAG_NNODELAY 0x02
@@ -421,6 +423,10 @@ struct server_config {
u_int32_t auth_id;
struct auth *auth;
+ int return_code;
+ char *return_uri;
+ off_t return_uri_len;
+
TAILQ_ENTRY(server_config) entry;
};
TAILQ_HEAD(serverhosts, server_config);