Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Charlie on December 29, 2003, 04:22:08 PM

Title: Proxypass config question
Post by: Charlie 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.
Title: Re: Proxypass config question
Post by: Boris 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.
Title: Re: Proxypass config question
Post by: Charlie 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?
Title: Re: Proxypass config question
Post by: Boris 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?
Title: Re: Proxypass config question
Post by: Charlie 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?
Title: Re: Proxypass config question
Post by: Boris on December 30, 2003, 07:42:59 PM
I haven't try /level1/level2 setup, but check if using second / (after level2/) helps.
Title: Re: Proxypass config question
Post by: Charlie 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//' ?
Title: Re: Proxypass config question
Post by: Boris on December 31, 2003, 09:11:20 PM
no. Just one trailing slash
Like this:
/level1/level2' -> 'http://xxx.xxx.xxx.xxx/level1/level2/