server {
listen 80;
server_name *.com;
location / {
proxy_redirect
http://www.yyets.com/ /;
proxy_set_header Accept-Encoding "";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass
http://www.yyets.com;
proxy_cookie_domain
www.yyets.com *.com;
proxy_cache one;
proxy_cache_valid 200 304 3h;
proxy_cache_valid 301 3d;
proxy_cache_valid any 1m;
proxy_cache_use_stale invalid_header error timeout http_502;
sub_filter
www.yyets.com *.com;
sub_filter_once off;
}
}