/ Zope / Apsis / Pound Mailing List / Archive / 2010 / 2010-04 / How to direct to backend server application

[ << ] [ >> ]

[ Git over http backend / Agustin Henze ... ] [ SSL super super sloowwww on IE / "Anne ... ]

How to direct to backend server application
"Anne Moore" <diabeticithink(at)yahoo.com>
2010-04-02 23:43:58 [ SNIP ]
Hi All
 
Thanks for many of you, I was able to get my SSL working. Unfortunately, I
have one final issue I can't seem to resolve.
 
My frontend server (pound) must forward all requests back to two web
servers. However, the web servers have an application called "myapp" on them
that the users must be forwarded to.
 
So, my setup is like this:
 
https://mypoundserver.helpme.org
 
Must forward requests to the backend web servers, to this URL:
 
https://mywebserver1.helpme.org/myapp
https://mywebserver2.helpme.org/myapp
 
However, i can't seem to get my pound server to forward all requests to the
"myapp" portion of the web servers URL.
 
Any idea how I can do that? (I tried the redirect in the pound.cfg, but it
didn't work.)
 
Thank you for any help you're willing to provide.
 
Anne
 

Attachments:  
text.html text/html 3100 Bytes

Re: [Pound Mailing List] How to direct to backend server application
Dave Steinberg <dave(at)redterror.net>
2010-04-03 00:56:02 [ SNIP ]
On 4/2/2010 5:43 PM, Anne Moore wrote:
> Hi All
>
> Thanks for many of you, I was able to get my SSL working. Unfortunately, I
> have one final issue I can't seem to resolve.
>
> My frontend server (pound) must forward all requests back to two web
> servers. However, the web servers have an application called "myapp" on them
> that the users must be forwarded to.
>
> So, my setup is like this:
>
> https://mypoundserver.helpme.org
>
> Must forward requests to the backend web servers, to this URL:
>
> https://mywebserver1.helpme.org/myapp
> https://mywebserver2.helpme.org/myapp
>
> However, i can't seem to get my pound server to forward all requests to the
> "myapp" portion of the web servers URL.
>
> Any idea how I can do that? (I tried the redirect in the pound.cfg, but it
> didn't work.)
>
> Thank you for any help you're willing to provide.

Pound doesn't support any sort of URL transformation such that it would 
transparently do the replacement you want.  Your best bet is to check 
the URL, and if it matches "^/myapp", forward to the backends, 
otherwise, redirect to /myapp.

Pseudocode:

ListenHTTP
     ...
	Service
		URL "^/myapp"
		Backend
			Address mybackend
			Port ...
		end
	End
	Service
		Redirect "http://myserver/myapp"
	End
End

Regards,
-- 
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/

RE: [Pound Mailing List] How to direct to backend server application
"Anne Moore" <diabeticithink(at)yahoo.com>
2010-04-03 15:47:21 [ SNIP ]
Dave

Thanks for this. I'll give it a try today.

Anne 

-----Original Message-----
From: Dave Steinberg [mailto:dave(at)redterror.net] 
Sent: Friday, April 02, 2010 6:56 PM
To: pound(at)apsis.ch
Subject: Re: [Pound Mailing List] How to direct to backend server
application

On 4/2/2010 5:43 PM, Anne Moore wrote:
> Hi All
>
> Thanks for many of you, I was able to get my SSL working. 
> Unfortunately, I have one final issue I can't seem to resolve.
>
> My frontend server (pound) must forward all requests back to two web 
> servers. However, the web servers have an application called "myapp" 
> on them that the users must be forwarded to.
>
> So, my setup is like this:
>
> https://mypoundserver.helpme.org
>
> Must forward requests to the backend web servers, to this URL:
>
> https://mywebserver1.helpme.org/myapp
> https://mywebserver2.helpme.org/myapp
>
> However, i can't seem to get my pound server to forward all requests 
> to the "myapp" portion of the web servers URL.
>
> Any idea how I can do that? (I tried the redirect in the pound.cfg, 
> but it didn't work.)
>
> Thank you for any help you're willing to provide.

Pound doesn't support any sort of URL transformation such that it would
transparently do the replacement you want.  Your best bet is to check the
URL, and if it matches "^/myapp", forward to the backends, otherwise,
redirect to /myapp.

Pseudocode:

ListenHTTP
     ...
	Service
		URL "^/myapp"
		Backend
			Address mybackend
			Port ...
		end
	End
	Service
		Redirect "http://myserver/myapp"
	End
End

Regards,
--
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/

--
To unsubscribe send an email with subject unsubscribe to pound(at)apsis.ch.
Please contact roseg(at)apsis.ch for questions.


MailBoxer