+++ title = "Clearnet -> Onion Website" date = 2019-07-07T02:23:49+02:00 author = "MH" cover = "" tags = ["Tor", "Setup", "Concept", "Proxy"] description = "Why not have a hidden service on a normal Site?" showFullContent = false draft = true +++ ``` root@wwwtest2tor2:/opt# grep '' * nginx_site.conf:server { nginx_site.conf: listen 80 default_server; nginx_site.conf: listen [::]:80 default_server; nginx_site.conf: root /var/www/html; nginx_site.conf: server_name _; nginx_site.conf: location / { nginx_site.conf: nginx_site.conf: proxy_pass http://127.0.0.1:81; nginx_site.conf: proxy_set_header Host "mxoal6ts2kwnxkpbxuc6ls5c43jnaefpdjx27tnjncgmobnec2untnad.onion"; nginx_site.conf: proxy_set_header Accept-Encoding ""; nginx_site.conf: proxy_set_header Via "$host"; nginx_site.conf: subs_filter 'mxoal6ts2kwnxkpbxuc6ls5c43jnaefpdjx27tnjncgmobnec2untnad.onion' '10.40.8.206'; nginx_site.conf: nginx_site.conf: } nginx_site.conf:} proxy_http_2_socks5.sh:#!/bin/bash proxy_http_2_socks5.sh:export hiddenservice="mxoal6ts2kwnxkpbxuc6ls5c43jnaefpdjx27tnjncgmobnec2untnad.onion:80" proxy_http_2_socks5.sh:socat tcp4-LISTEN:81,reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:127.0.0.1:"$hiddenservice",socksport=9050 & resolv.conf:nameserver 127.0.0.1 torrc:DNSPort 53 torrc:AutomapHostsOnResolve 1 ```