reverse-proxy-caddyfile/conf/google.caddyfile
2024-10-21 00:33:13 +08:00

29 lines
803 B
Caddyfile

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
}
}