Skip to content

http-proxy to apache failed. #234

Closed
Closed
@zzswang

Description

@zzswang

I have an apache server running on port 82.

//proxy for apps                                                                                                                                                                                                                                                                                            
httpProxy.createServer({                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
  router:{                                                                                                                                                                                                                                                                                                  
    'cloud9.xxxx.net': 'localhost:8121',    // to a cloud app(node.js)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    'www.xxxxx.com': 'localhost:82',        // to apache                                                                                                                                                                                                                                                              
  }                                                                                                                                                                                                                                                                                                         
}).listen(80);   

when i request http://www.xxxx.com/a/b
it always redirect to http://www.xxxx.com:82/a/b
Because of firewall. it will failed.
why port 82 will be shown up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions