J
J
Juribiyan2016-05-20 09:32:55
Nginx
Juribiyan, 2016-05-20 09:32:55

How to make a proxy for a website that has lost its domain using Cloudflare?

The situation is this: there is a site that is behind the Cloudflare proxy and has lost its domain. The site is available if the domain and IP are registered in HOSTS. Task: to make a proxy for this site, which will give access to it without the need to edit HOSTS. Preferably with minimal load on my server.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Chudnovsky, 2016-05-20
@Frankenstine

You must register the domain with a registrar. This is the only way without editing hosts.

A
Alexey, 2016-05-20
@alsopub

Well, or register another domain + nginx + proxy_pass + set $host + ...
And there are no direct links to your (non-existent) domain on the site?
If there is, then you will have to do it differently, filter html, css, js and replace the old domain with a new one.
Something like https://www.ruby-forum.com/topic/178781
UPD. Didn't understand the task - nginx or squid? Should the site work for everyone or only those who have access to the proxy? If through a proxy, then it may be enough to add it to host, configure squid to a local name resolver, and that's it.

V
Vladimir Dubrovin, 2016-05-20
@z3apa3a

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
(port forwarding)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question