#679·gost

Issue with gost forwarding requests to Tor domain: "http: no Host in request URL"

Author: solbraonCreated Mar 13, 2025Updated Aug 26, 2026

I'm trying to use gost to forward requests coming to my public domain to my Tor domain, but I'm encountering the following error: http: no Host in request URL Setup:

gost command:

gost -L http://127.0.0.1:8081 -F socks5://127.0.0.1:9050

Nginx configuration:

server {
    listen 80;
    server_name _;

    location / {
        proxy_pass http://127.0.0.1:8081;
        proxy_set_header Host myoniondomain.onion;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Is there a specific configuration I need to add to gost or Nginx to resolve this issue?