mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 10:37:24 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			78 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| :80
 | |
| 
 | |
| push * /foo.txt
 | |
| 
 | |
| push {
 | |
| 	GET /foo.txt
 | |
| }
 | |
| 
 | |
| push {
 | |
| 	GET /foo.txt
 | |
| 	HEAD /foo.txt
 | |
| }
 | |
| 
 | |
| push {
 | |
| 	headers {
 | |
| 		Foo bar
 | |
| 	}
 | |
| }
 | |
| ----------
 | |
| {
 | |
| 	"apps": {
 | |
| 		"http": {
 | |
| 			"servers": {
 | |
| 				"srv0": {
 | |
| 					"listen": [
 | |
| 						":80"
 | |
| 					],
 | |
| 					"routes": [
 | |
| 						{
 | |
| 							"handle": [
 | |
| 								{
 | |
| 									"handler": "push",
 | |
| 									"resources": [
 | |
| 										{
 | |
| 											"target": "/foo.txt"
 | |
| 										}
 | |
| 									]
 | |
| 								},
 | |
| 								{
 | |
| 									"handler": "push",
 | |
| 									"resources": [
 | |
| 										{
 | |
| 											"method": "GET",
 | |
| 											"target": "/foo.txt"
 | |
| 										}
 | |
| 									]
 | |
| 								},
 | |
| 								{
 | |
| 									"handler": "push",
 | |
| 									"resources": [
 | |
| 										{
 | |
| 											"method": "GET",
 | |
| 											"target": "/foo.txt"
 | |
| 										},
 | |
| 										{
 | |
| 											"method": "HEAD",
 | |
| 											"target": "/foo.txt"
 | |
| 										}
 | |
| 									]
 | |
| 								},
 | |
| 								{
 | |
| 									"handler": "push",
 | |
| 									"headers": {
 | |
| 										"set": {
 | |
| 											"Foo": [
 | |
| 												"bar"
 | |
| 											]
 | |
| 										}
 | |
| 									}
 | |
| 								}
 | |
| 							]
 | |
| 						}
 | |
| 					]
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| } |