location /google {
proxy_redirect off;
proxy_set_header Host "www.google.com";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "";
client_max_body_size 100m;
client_body_buffer_size 128k;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
proxy_read_timeout 90s;
proxy_buffer_size 64k;
proxy_buffers 32 32k;
proxy_busy_buffers_size 128k;
proxy_temp_file_write_size 128k;
proxy_pass
https://www.google.com/;
sub_filter
www.google.com time-river.xyz/google;
sub_filter_once off;
}
upstream
www.google.com {
server 216.58.192.46:443 max_fails=3;
server 216.58.192.47:443 max_fails=3;
server 216.58.192.45:443 max_fails=3;
server 216.58.192.43:443 max_fails=3;
ip_hash;
keepalive 32;
}
网址是 time-river.xyz/google,不知道哪里出了问题。
我想保留google的即使搜索,所以还不能固定cookie。
难不成真得把git的那个模块编译进去?
我还想代理中文的wiki呢。