How to make a proxy for a lost domain of the site behind Cloudflare?

The situation is this: is there a website behind Cloudflare proxies and have lost your domain. The site is available, if in HOSTS to register a domain and IP. Objective: to make proxy for this site, which will give access to it without having to edit HOSTS. Preferably with minimum load on my server.
July 9th 19 at 12:53
3 answers
July 9th 19 at 12:55
You have to register a domain at the Registrar. This is the only way without editing hosts.
July 9th 19 at 12:57
Well, or register a different domain + nginx + proxy_pass + set $host + ...
A website case there are no direct references to his (non-existent) domain?
If there is then you have to do differently, filter, html, css, js and replace the old domain with the new one.
Something like https://www.ruby-forum.com/topic/178781

UPD. Did not understand the problem - nginx or squid? The website should earn for all or only those who have access to the proxy? If using a proxy, then, may suffice to bring it on the host, configure squid to the local name resolver and all.
July 9th 19 at 12:59
in 3proxy

allow * * www.site.name site.name 80
parent 1000 tcp 1.2.3.4 80
deny *
proxy -a-n-p 80

or just
tcppm 80 1.2.3.4 80
(forwarding port)

Find more questions by tags CloudflareNginxProxySquid