server { listen 80 default_server; server_name _; server_name_in_redirect off; resolver 127.0.0.11; proxy_cache mycache; proxy_cache_valid 200 15s; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log debug; location /service { proxy_method GET; proxy_pass $arg_url; proxy_hide_header Access-Control-Allow-Origin; add_header Access-Control-Allow-Origin $http_origin; } }