Samesite - proxy that can cache partial transfers

Check-in [95fc83d16a]
anonymous

Check-in [95fc83d16a]

Overview
Comment:updated config so that HEAD request would go directly to the backend
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: 95fc83d16a9a4f2737e45f90b0d274cf9d9f51323e0398feb9b05acc64703c1a
User & Date: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 on 2012-01-20 09:42:29.000
Other Links: branch diff | manifest | tags
Context
2012-01-20
10:30
taking out real values, some comments added check-in: 2af344df7b user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk
09:42
updated config so that HEAD request would go directly to the backend check-in: 95fc83d16a user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk
2012-01-16
13:39
oops, not checking file breaks thins check-in: d1fa9d0737 user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk
Changes
1
2
3
4
5
6
7
8
9
10


11


12
13

14
15

16
17
18


19
20
21
# sample nginx config to serve the local site

server {
	listen *:80;
	listen [fec0::1]:80;
	server_name site.to.hijack;
	access_log /var/log/nginx/site_name.access.log;
	error_log /var/log/nginx/site_name.error.log debug;
	# if no file found locally we are breaking connection
	# helps with clients that treat 404 as general error


	error_page 404 = @break;



	location / {

		root /path/to/www/site_name/;
		autoindex on;

	}

	location @break {


		return 444;
	}
}










>
>

>
>


>
|
<
>



>
>
|


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

20
21
22
23
24
25
26
27
28
# sample nginx config to serve the local site

server {
	listen *:80;
	listen [fec0::1]:80;
	server_name site.to.hijack;
	access_log /var/log/nginx/site_name.access.log;
	error_log /var/log/nginx/site_name.error.log debug;
	# if no file found locally we are breaking connection
	# helps with clients that treat 404 as general error
	expires -1;
	try_files $uri @break;
	error_page 404 = @break;
	log_not_found off;
	# autoindex on;

	location / {
		if ($request_method != HEAD) {
			root /home/arcade/www/windowsupdate;

		}
	}

	location @break {
		proxy_pass http://localhost:8008;
		proxy_set_header Host download.windowsupdate.com;
		proxy_read_timeout 600;
	}
}