# Can proxy use resolver to forward traffic to https sites?

**URL:** <https://www.ruby-forum.com/t/can-proxy-use-resolver-to-forward-traffic-to-https-sites/222396>\
**Category:** NGINX\
**Created:** [August 27, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/can-proxy-use-resolver-to-forward-traffic-to-https-sites/222396 "2012-08-27T14:01:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 27, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/can-proxy-use-resolver-to-forward-traffic-to-https-sites/222396/1 "2012-08-27T14:01:51Z")

</div>

When it happens to be http traffic it works. if you look at the line  
directive lines,

proxy\_pass http://$http\_host$uri$is\_args$args; // Doesnt work  
proxy\_pass http://$http\_host$uri$is\_args$args; // Works

```
server {
    listen 8080;

    location / {
        resolver 8.8.8.8;
        proxy_pass http://$http_host$uri$is_args$args; // Doesn't 

```

work  
proxy\_pass http://$http\_host$uri$is\_args$args; // Works  
}

```
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
        root html;
    }
}

```

Posted at Nginx Forum:

> **[can proxy use resolver to forward traffic to https sites?](https://forum.nginx.org/read.php?2,230113,230113#msg-230113)**
>
> When it happens to be http traffic it works. if you look at the line directive lines, proxy\_pass http://$http\_host$uri$is\_args$args; // Doesnt work proxy\_pass http://$http\_host$uri$is\_args$args; // Works server { listen 8080;
