how to proxy 'http://domain.com/api/setScore' to 'http://localhost:3001/setScore' #550
Replies: 3 comments
-
Do you mean proxy 'http://localhost:3001/setScore' -> 'http://domain.com/api/setScore' |
Beta Was this translation helpful? Give feedback.
-
I think he wants it to proxy it the other way around. |
Beta Was this translation helpful? Give feedback.
-
You would have to have "domain.com" point to a server you are controlling at that moment (localhost, perhaps, or an alternate local IP like 127.0.0.2, or a docker/vagrant host). Then you run the proxy on port 80 on that host that sends traffic to localhost port 3001/api. |
Beta Was this translation helpful? Give feedback.
-
Hi. I want to make a proxy to following rediraction:
From:
'http://domain.com/api/setScore'
To:
'http://localhost:3001/setScore'
Beta Was this translation helpful? Give feedback.
All reactions