Page 1 of 1

Reverse Proxy Help

PostPosted: 18. June 2011 16:22
by markhaines
Hi, I've got a Windows XAMPP server running various websites on Port 80. I'm successfully using vhosts to redirect specific urls, eg:
a.foo.com to c:\xampp\htdocs\a
b.foo.com to c:\xampp\htdocs\b ....etc

On the same server I have a few web service apps such as Sickbeard, SABnzbd, CouchPototo etc running on different ports eg: 8080, 8181 etc. I'd like to be able to somehow specify sick.a.com to proxy(?) to the relevant service, eg: localhost:8080, partly to reduce to the number of open ports on the server but mainly to make accessing the services cleaner. I think I need to use reverse proxy to do this - can anyone offer me some pointers?

Many thanks

Mark

Re: Reverse Proxy Help

PostPosted: 18. June 2011 16:55
by Nobbie

Re: Reverse Proxy Help

PostPosted: 18. June 2011 17:23
by markhaines
Thanks for your response. I'd stumbled across that article. It talks about mapping "http://www.example.com/app1/any-path-here is mapped internally to http://internal1.example.com/any-path-here" I'm not sure how to apply that to what i'm after which would be http://app1.example.com though?

Re: Reverse Proxy Help

PostPosted: 18. June 2011 20:40
by JonB
I'm not sure if mod_proxy alone can do the port redirection

read this:
http://ask.metafilter.com/44548/Can-apa ... g-the-port

Good Luck
8)

Re: Reverse Proxy Help

PostPosted: 19. June 2011 13:30
by markhaines
Thanks, in the end I found this article: http://www.linuxquestions.org/questions ... he-527625/ The code listed in the last part does the job perfectly!

Thanks

Re: Reverse Proxy Help

PostPosted: 20. June 2011 19:20
by JonB
Thanks - that was a good find -
8)