Reverse Proxy Help

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Reverse Proxy Help

Postby markhaines » 18. June 2011 16:22

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
markhaines
 
Posts: 3
Joined: 18. June 2011 16:13

Re: Reverse Proxy Help

Postby Nobbie » 18. June 2011 16:55

Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Reverse Proxy Help

Postby markhaines » 18. June 2011 17:23

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?
markhaines
 
Posts: 3
Joined: 18. June 2011 16:13

Re: Reverse Proxy Help

Postby JonB » 18. June 2011 20:40

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Reverse Proxy Help

Postby markhaines » 19. June 2011 13:30

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
markhaines
 
Posts: 3
Joined: 18. June 2011 16:13

Re: Reverse Proxy Help

Postby JonB » 20. June 2011 19:20

Thanks - that was a good find -
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 139 guests