Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to forward TCP from port 80 to another local port, based of the hostname in a HTTP request.

I want to avoid using a HTTP reverse proxy if its possible, since it will store the entire HTTP request before forwarding it - as I understand: http://wiki.nginx.org/HttpProxyModule

If its not possible to avoid using a HTTP reverse proxy. Is it then possible to avoid storing the entire HTTP request before forwarding it.

share|improve this question
    
You have described the operation of a reverse proxy. What is it you're really trying to do? –  Michael Hampton Nov 1 '12 at 23:45
    
Then I want to avoid storing the entire HTTP request before it is forwarded. Do you know if this is possible? –  Jacob Nov 1 '12 at 23:51

1 Answer 1

up vote 1 down vote accepted

If you want to select the backend based on the Host header and not buffer the request body you'll need something like HAProxy or possibly Varnish instead of nginx.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.