Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: chrislaurie on March 03, 2005, 05:57:29 AM

Title: Rerouting virtual domain to another server
Post by: chrislaurie on March 03, 2005, 05:57:29 AM
Hi all

I'm a linux and SME newbie. I have SME (6.01) running. I also have an XP box that runs Apache. I need this box as it has a SOAP module that must run in Win32. All this behind an ADSL usine Dynamic DNS.

My question is how I set-up so that the SME server will handle all my http requests but requests for /www.mydomain.net/soapservice is routed to the XP box? Or in fact all requests for mydomain send to the XP box.

At the moment I use port forwarding on the ADSL router to send everything (all http) to the XP box. So the SME server cannot be used for http.

On SME I can set port forwarding (which would be the same as I have now) or a virtual domain (but that maps only to an ibay). What I want is to set a virtual domain that maps to a specific machine.

Any suggestions welcomed.

Cheers

Chris
Title: Rerouting virtual domain to another server
Post by: Buddha_Joe on March 03, 2005, 06:08:06 AM
I'm not sure on this but I figured I would just through this out there.

After you create a virtual domain on the domain panel you can edit the ip info for it in the Hostnames and addresses.. mind you this is just a guess.

you may not even have to create the virtual domain though and just add the hostname for the machine in question in the Hostnames and addresses..
Title: Rerouting virtual domain to another server
Post by: funkusmunkus on March 03, 2005, 06:10:59 AM
this is what your after
http://mirror.contribs.org/smeserver/contribs/index.php?subdir=aloveless%2Fcontribs%2Fproxypass&sortby=name


hope that helps
cheers
Title: Rerouting virtual domain to another server
Post by: Buddha_Joe on March 03, 2005, 06:16:08 AM
That definitly sound more like it to me funkusmunkus LOL... Thanks I didn't know that was out there..
Title: Rerouting virtual domain to another server
Post by: Buddha_Joe on March 03, 2005, 06:49:30 AM
I read everything over again and see where I made my mistake and why I was wrong. Thanks again funkusmunkus
Title: Rerouting virtual domain to another server
Post by: djhomeless on March 03, 2005, 08:31:24 AM
Thanks as well funkusmunkus! I thought this functionality wasn't possible after I read the following in the User Guide (http://"http://mirror.contribs.org/smeserver/contribs/bobk/SME_Manual/chpt-13.5.html"):

Quote
For instance, you might want "research" to point to a computer system inside your network.

Where this gets complicated is when you want "research.mycompany.xxx" to be accessible both inside and outside your local network. The challenge is that your local IP addresses are only accessible inside your network. For that reason, the target computer system will need to have two network interface cards - one connected to the internal network and one connected to the external network. You would then enter both IP addresses in this screen in the "Local IP" and "Global IP" fields.


But, this contrib does the job! I needed this badly because I wanted my emule server (running on a Win32 box) to be accessable outside my local lan (without using port forwarding).

Great contrib, hope it still works with 6.5.

Geoffrey[/quote]
Title: Rerouting virtual domain to another server
Post by: funkusmunkus on March 03, 2005, 12:50:02 PM
Glad to help when i can :-)
Title: Rerouting virtual domain to another server
Post by: chrislaurie on March 03, 2005, 01:39:54 PM
Thanx to all who replied. Here's what I did:

- Implement the ProxyPass contrib. http://mirror.contribs.org/smeserver/contribs/index.php?subdir=aloveless%2Fcontribs%2Fproxypass&sortby=name
- Create a virtual domain for the incoming URL. I needed this or the SME server would bounce the request. I think the URL is first tested before it gets to ProxyPass in Apache.
- Create a URL map with ProxyPass for /soapservice/ to http://192.168.0.1/soapservice/. From the apache module documentation I thought I could leave out the /soapservice/ - but the SME implementation of ProxyPass needed the full URL.

I need to test on https but I'm pretty sure it will work.

Thanx again funkusmunkus.

Anybody know if (or why) this will not work on 6.5 or 7?

Chris Lauriehttp://