So, if we want to use google search or watch video in youtube, you need to use some tricks. The online web proxy is a convenient method. But I am not sure that whether it is safe or not. You should not sign you account on these proxy.
1)https://www.freeproxyserver.co/
2)https://proxysite.io/
3)https://www.proxysite.com/
4)https://www.vpnbook.com/webproxy
If these proxy are invalid, you should go to www.searx.me to search online proxy, you will find a useful one.
build google mirror
install nginx
sudo vim /etc/yum.repos.d/nginx.repo
write follow content in this file
save and exit the file.[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/7/$basearch/gpgkey=http://nginx.org/keys/nginx_signing.keygpgcheck=1enabled=1
sudo yum install -y nginx
configure
sudo vi /etc/nginx/conf.d/default.conf
server {#deny all ;
listen 80;
server_name your vps ip or domain
location / {
proxy_pass https://www.google.com;
proxy_connect_timeout 120;
proxy_read_timeout 600;
proxy_send_timeout 600;
send_timeout 600;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#allow ip ;
}
}
start up
sudo systemctl start nginx
sudo systemctl enable nginx
You have done all the thing need to build a google mirror.
--------------------------------------------------------------------------
some tips
sudo nginx -t -c /etc/nginx/nginx.conf
sudo systemctl stop nginx
sudo service nginx stop
sudo service nginx restart
REFERENCE
https://laravel-china.org/articles/4431/nginx-tcp-reverse-proxy?order_by=vote_count&
No comments:
Post a Comment