summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit_request.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-05-14 13:15:01 +0300
committerValentin Bartenev <vbart@nginx.com>2020-05-14 13:15:01 +0300
commit376d758dd72ac27f2bd5bb833ba68f5c9b531880 (patch)
treea3891a0586669543c35004ccbff3a6deca893903 /src/nxt_unit_request.h
parent0174c971b5ec0d604e4e9becfa41e0bc31179e57 (diff)
downloadunit-376d758dd72ac27f2bd5bb833ba68f5c9b531880.tar.gz
unit-376d758dd72ac27f2bd5bb833ba68f5c9b531880.tar.bz2
PHP: implemented "targets" option.
This allows to specify multiple subsequent targets inside PHP applications. For example: { "listeners": { "*:80": { "pass": "routes" } }, "routes": [ { "match": { "uri": "/info" }, "action": { "pass": "applications/my_app/phpinfo" } }, { "match": { "uri": "/hello" }, "action": { "pass": "applications/my_app/hello" } }, { "action": { "pass": "applications/my_app/rest" } } ], "applications": { "my_app": { "type": "php", "targets": { "phpinfo": { "script": "phpinfo.php", "root": "/www/data/admin", }, "hello": { "script": "hello.php", "root": "/www/data/test", }, "rest": { "root": "/www/data/example.com", "index": "index.php" }, } } } }
Diffstat (limited to 'src/nxt_unit_request.h')
-rw-r--r--src/nxt_unit_request.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_unit_request.h b/src/nxt_unit_request.h
index 52017a42..fede00d2 100644
--- a/src/nxt_unit_request.h
+++ b/src/nxt_unit_request.h
@@ -21,6 +21,7 @@ struct nxt_unit_request_s {
uint8_t local_length;
uint8_t tls;
uint8_t websocket_handshake;
+ uint8_t app_target;
uint32_t server_name_length;
uint32_t target_length;
uint32_t path_length;