可以docker一键安装nginx
然后修改nginx/conf.d
server {
listen 80;
server_name www.你的域名.com;
location / {
proxy_pass https://www.google.com;
proxy_redirect off;
proxy_set_header Host 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.你的域名.com;
sub_filter_once off;
sub_filter_types *;
}
}
没有评论:
发表评论