reverse-proxy-caddyfile/conf/google.caddyfile

29 lines
803 B
Plaintext
Raw Permalink Normal View History

2024-10-20 12:33:13 -04:00
google.example.com {
import log google.example.com
import common
import ratelimit
import geoblock
replace http://www.google.com http://google.example.com
replace https://www.google.com http://google.example.com
reverse_proxy https://www.google.com {
header_up Host www.google.com
header_down Set-Cookie google.com google.example.com
}
}
google-scholar.example.com {
import log google-scholar.example.com
import common
import ratelimit
import geoblock
replace http://www.google.com http://google.example.com
replace https://www.google.com http://google.example.com
replace https://scholar.google.com http://google-scholar.example.com
reverse_proxy https://scholar.google.com {
header_up Host scholar.google.com
header_down Set-Cookie google.com google-scholar.example.com
}
}