Koozali.org: home of the SME Server

Proxypass config question

Charlie

Proxypass config question
« on: December 29, 2003, 04:22:08 PM »
I'm trying to forward a domain hosted on a second SME6 server and am having a problem doing it. I'm not sure if it is a configuration error or a problem with SME6.

Here is my configuration: I have an SME6 server as a server/gateway with proxypass installed. It hosts 'mydomain1.com'. I have a second SME6 server running as server only hosting 'mydomain2.com. I set up a virtual domain in the gateway server to pass 'mydomain2.com' to the internal IP address of the second SME6 server.

Internally, everything works as desired. Externally, requests to 'www.mydomain2.com' works fine. However, 'www.mydomain2.com/nextlevel' doesn't work. It times out. Internally this works fine.

Can anyone point me in the right direction? Thanks in advance.

Boris

Re: Proxypass config question
« Reply #1 on: December 29, 2003, 07:39:31 PM »
Internally, your DNS points your browser to the right server wherefore www.mydomain2.com/nextlevel works as well. Externally, browser trying to find /nextlevel on the gateway server.
Proxypass redirects exact URL only. You need to forward the same way every URL (www.mydomain2.com/nextlevel-1, www.mydomain2.com/nextlevel-2 etc.) to the second server.

Charlie

Re: Proxypass config question
« Reply #2 on: December 29, 2003, 09:11:02 PM »
I can only see a way to forward the 'domain2.com' url. I can't see how I'd enter 'domain2.com/nextlevel' anywhere. Am I missing something?

Boris

Re: Proxypass config question
« Reply #3 on: December 30, 2003, 06:25:06 AM »
In my installation op ProxyPass (SME 5.6) I have both "ProxyPass virtual domain" and "ProxyPass URL".
Under ProxyPass URL you can set /nextlevel-1 -> http://server2/nextlevel-1 or /nextlevel-2 -> http://192.168.1.5/nextlevel-2

etc..

Is your installation different?

Charlie

Re: Proxypass config question
« Reply #4 on: December 30, 2003, 04:50:45 PM »
Here is what I've got:

Virtual domain 'mydomain2.com' forwarded to http://xxx.xxx.xxx.xxx

Proxy pass urls set as follows:
'/level1/'  -> 'http://xxx.xxx.xxx.xxx/level1/'
'/level1/level2'  -> 'http://xxx.xxx.xxx.xxx/level1/level2'

I can navigate to level1 fine but I can't get to level2. Any ideas?

Boris

Re: Proxypass config question
« Reply #5 on: December 30, 2003, 07:42:59 PM »
I haven't try /level1/level2 setup, but check if using second / (after level2/) helps.

Charlie

Re: Proxypass config question
« Reply #6 on: December 31, 2003, 05:21:25 PM »
Boris wrote:

> I haven't try /level1/level2 setup, but check if using second
> / (after level2/) helps.

do you mean '/level1/level2//' ?

Boris

Re: Proxypass config question
« Reply #7 on: December 31, 2003, 09:11:20 PM »
no. Just one trailing slash
Like this:
/level1/level2' -> 'http://xxx.xxx.xxx.xxx/level1/level2/