@marcel91200 / caddy Mirror · read-only
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 01:00 UTC

master
caddyfiletest 72 lines 1.23 KB
Raw
1 :8884
2
3 php_fastcgi localhost:9000 {
4 # some php_fastcgi-specific subdirectives
5 split .php .php5
6 env VAR1 value1
7 env VAR2 value2
8 root /var/www
9 index off
10 dial_timeout 3s
11 read_timeout 10s
12 write_timeout 20s
13
14 # passed through to reverse_proxy (directive order doesn't matter!)
15 lb_policy random
16 }
17 ----------
18 {
19 "apps": {
20 "http": {
21 "servers": {
22 "srv0": {
23 "listen": [
24 ":8884"
25 ],
26 "routes": [
27 {
28 "match": [
29 {
30 "path": [
31 "*.php",
32 "*.php5"
33 ]
34 }
35 ],
36 "handle": [
37 {
38 "handler": "reverse_proxy",
39 "load_balancing": {
40 "selection_policy": {
41 "policy": "random"
42 }
43 },
44 "transport": {
45 "dial_timeout": 3000000000,
46 "env": {
47 "VAR1": "value1",
48 "VAR2": "value2"
49 },
50 "protocol": "fastcgi",
51 "read_timeout": 10000000000,
52 "root": "/var/www",
53 "split_path": [
54 ".php",
55 ".php5"
56 ],
57 "write_timeout": 20000000000
58 },
59 "upstreams": [
60 {
61 "dial": "localhost:9000"
62 }
63 ]
64 }
65 ]
66 }
67 ]
68 }
69 }
70 }
71 }
72 }