diff options
author | Reyk Floeter <reyk@esdenera.com> | 2015-06-20 14:10:47 +0200 |
---|---|---|
committer | Reyk Floeter <reyk@esdenera.com> | 2015-06-20 14:15:23 +0200 |
commit | f3f57c7673a69d373ac1b2d64d919ea504d9f7f0 (patch) | |
tree | fdc874b40d160304780c5797b3beba74d79342fb /httpd/httpd.h | |
parent | 739f1323fdd1b31986f8d976b287b5a250539ec7 (diff) | |
download | httpd-f3f57c7673a69d373ac1b2d64d919ea504d9f7f0.tar.gz httpd-f3f57c7673a69d373ac1b2d64d919ea504d9f7f0.zip |
Experimental support for rewrites using Lua's lean pattern matching implementation.
Diffstat (limited to 'httpd/httpd.h')
-rw-r--r-- | httpd/httpd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/httpd/httpd.h b/httpd/httpd.h index 1431eaa..ff76281 100644 --- a/httpd/httpd.h +++ b/httpd/httpd.h @@ -35,6 +35,8 @@ #include <imsg.h> #include <tls.h> +#include "patterns.h" + #define CONF_FILE "/etc/httpd.conf" #define HTTPD_SOCKET "/var/run/httpd.sock" #define HTTPD_USER "www" @@ -278,6 +280,7 @@ struct client { void *clt_srv_conf; u_int32_t clt_srv_id; struct sockaddr_storage clt_srv_ss; + struct str_match clt_srv_match; int clt_s; in_port_t clt_port; @@ -341,12 +344,15 @@ SPLAY_HEAD(client_tree, client); #define SRVFLAG_NO_AUTH 0x00020000 #define SRVFLAG_BLOCK 0x00040000 #define SRVFLAG_NO_BLOCK 0x00080000 +#define SRVFLAG_LOCATION_MATCH 0x00100000 +#define SRVFLAG_SERVER_MATCH 0x00200000 #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\23BLOCK\24NO_BLOCK" + "\21AUTH\22NO_AUTH\23BLOCK\24NO_BLOCK\25LOCATION_MATCH" \ + "\26SERVER_MATCH" #define TCPFLAG_NODELAY 0x01 #define TCPFLAG_NNODELAY 0x02 |