Closed joaomilho closed 8 years ago
Just figured out it's because my server is on port 9292. Is there any simple way to make it work running on this port? I really don't wanna have to run on 80 on development. Thanks!
Try the "backend" option in the constructor of the proxy like: Foo.new(backend: "http://your_host:9292")
Sorry for taking so long to reply, but it didn't work. Using port 80 seems like the only solution. Why is that?
We're just experimenting with rack-proxy as well and it does have its subtleties ;) Can you try explicitly specifying the port like this?
env["HTTP_HOST"] = "example.com:80"
Change the port for the proxied request.
env['SERVER_PORT'] = '80' if env['SERVER_PORT'].to_i > 1000
This line above will allow you to request a domain while testing on localhost on a port higher that 1000
@joaomilho I hope your issue is resolved by now. Closing this issue.
I've just copied the example w/ example.com, added the "run" instruction, run rackup and... timeout.
Any idea?