chobits / ngx_http_proxy_connect_module

A forward proxy module for CONNECT request handling
BSD 2-Clause "Simplified" License
1.84k stars 498 forks source link

Does the module support tor proxy ? #298

Closed TheShadowMax closed 4 months ago

TheShadowMax commented 8 months ago

Good afternoon, I am trying to organize proxying by means of this module.

torrc

DataDirectory /var/lib/tor/proxy
HTTPTunnelPort 7272
RunAsDaemon 1

and config for nginx

server {
    listen 80;
    server_name localhost;

    proxy_connect;

    location / {
        proxy_set_header Host "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.onion";
        proxy_pass http://127.0.0.1:7272;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

But unfortunately nothing happens. and I still get the error that my host does not support http connect from tor. and proxying does not happen.

which way is up? and whether this scheme is possible with this module.

chobits commented 8 months ago

and I still get the error that my host does not support http connect from tor. and proxying does not happen.

what error message did your client report? You could use curl command to test its connectivity .

chobits commented 4 months ago

mark as stale, if you still have issue, feel free to reopen it.