server {
listen 80;
server_name http://www.urdomain.com;

location / {
proxy_pass https://www.google.com;
proxy_redirect off;
proxy_set_header Host http://www.google.com;
proxy_set_header Accept-Encoding “”;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sub_filter https://www.google.com http://www.urdomain.com;
sub_filter_once off;
sub_filter_types *;
}