Proxying fake domain to a localhost port
Posted
by
Trevor Burnham
on Super User
See other posts from Super User
or by Trevor Burnham
Published on 2011-11-25T22:24:14Z
Indexed on
2011/11/26
1:55 UTC
Read the original article
Hit count: 276
I'd like to do much the same thing described at Redirect Domain Name to Localhost for web app development purposes, but with the twist that I'd like requests to fakedomain.com:80
to be routed to localhost:8080
, say, so that I don't have to actually use my development machine's port 80.
I'd welcome answers that take the form of:
- Small changes to configuration files like
/etc/hosts
, and/or - An easy-to-configure proxy server I could run
Note: Pow takes the approach of setting a firewall rule to forward all incoming traffic on port 80 to port 20559. That may be an acceptable solution, but ideally, I'd like to forward only a specific domain + port combination.
© Super User or respective owner