nginx proxy google blogger

server {
listen 80;
server_name ssx8.com;
gzip off;
location / {
# proxy_pass https://www.ssx8.com;
rewrite ^/(.*)$ https://www.ssx8.com/$1 permanent;

}
}

server {
listen 443 ssl;
server_name ssx8.com ;
gzip on;
ssl_certificate /etc/nginx/certs/www.ssx8.com.pem;
ssl_certificate_key /etc/nginx/certs/www.ssx8.com.key;

ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

root /var/www/html;

location /
{
rewrite ^/(.*)$ https://www.ssx8.com/$1 permanent;
# proxy_pass http://ssx8.com;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Accept-Encoding “”;
proxy_set_header Accept-Language $http_accept_language;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

#proxy_set_header Host www.ssx8.com;
#proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header Cookie “”;
#proxy_hide_header Set-Cookie;
#proxy_hide_header Location;
#proxy_set_header User-Agent “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36”;
#proxy_set_header Accept-Encoding “”;

#subs_filter_types text/html text/css text/xml text/x-javascript application/x-javascript;
#subs_filter_types *;
#sub_filter_once off;
#subs_filter ‘//www.ssx8.com’ ‘//ssx8.com’;
#subs_filter ‘fonts.gstatic.com’ ‘gstatic.loli.net’;
#subs_filter ‘resources.blogblog.com/blogblog/data/res’ ‘cdn.jsdelivr.net/gh/staticfilestorage/cdn@cdn/blogger’;
#subs_filter ‘resources.blogblog.com/img’ ‘cdn.jsdelivr.net/gh/staticfilestorage/cdn@cdn/blogger’;
#subs_filter ‘https://www.blogger.com’ ‘https://ssx8.com/www.blogger.com’;
#subs_filter ‘https://1.bp.blogspot.com’ ‘https://ssx8.com/1.bp.blogspot.com’;
#subs_filter ‘https://2.bp.blogspot.com’ ‘https://ssx8.com/2.bp.blogspot.com’;
#subs_filter ‘https://3.bp.blogspot.com’ ‘https://ssx8.com/3.bp.blogspot.com’;
#subs_filter ‘https://4.bp.blogspot.com’ ‘https://ssx8.com/4.bp.blogspot.com’;
#subs_filter ‘https://5.bp.blogspot.com’ ‘https://ssx8.com/5.bp.blogspot.com’;
#subs_filter ‘https://6.bp.blogspot.com’ ‘https://ssx8.com/6.bp.blogspot.com’;
#subs_filter ‘https://7.bp.blogspot.com’ ‘https://ssx8.com/7.bp.blogspot.com’;
#subs_filter ‘https://8.bp.blogspot.com’ ‘https://ssx8.com/8.bp.blogspot.com’;
#subs_filter ‘https://9.bp.blogspot.com’ ‘https://ssx8.com/9.bp.blogspot.com’;
}

location /1.bp.blogspot.com/ { proxy_pass https://1.bp.blogspot.com/; }
location /2.bp.blogspot.com/ { proxy_pass https://2.bp.blogspot.com/; }
location /3.bp.blogspot.com/ { proxy_pass https://3.bp.blogspot.com/; }
location /4.bp.blogspot.com/ { proxy_pass https://4.bp.blogspot.com/; }
#location /5.bp.blogspot.com/ { proxy_pass https://5.bp.blogspot.com/; }
#location /6.bp.blogspot.com/ { proxy_pass https://6.bp.blogspot.com/; }
#location /7.bp.blogspot.com/ { proxy_pass https://7.bp.blogspot.com/; }
#location /8.bp.blogspot.com/ { proxy_pass https://8.bp.blogspot.com/; }
#location /9.bp.blogspot.com/ { proxy_pass https://9.bp.blogspot.com/; }

}

Comments are closed, but trackbacks and pingbacks are open.