Koozali.org: home of the SME Server

how to redirect two seperate sme boxes on one external IP ad

Mark

how to redirect two seperate sme boxes on one external IP ad
« on: September 21, 2003, 10:02:35 PM »
how to redirect two seperate internal SME boxes on one external IP address. I have already setup two Domain names, however the problem is when I attempt to connect to the second servers html index page I always receive the original servers HTML index page.

I require some sort of rediretor RPM so my first server box knows to redirect the domain request for the second domain name to the second server boxes internal IP address.

Hopefully someone has the name of the appropriate RPM to assist me. I am sure I am not the first to experience this.

Thanks,
Mark

Graeme Fleming

Re: how to redirect two seperate sme boxes on one external I
« Reply #1 on: September 21, 2003, 10:44:55 PM »
Add a virtual domain to your gateway SME box that is the same domain name as the domain on the second box.  Go into Hostnames and remove all you don't need on this box for this domain or just point them all to the IP of the second box (local).

HTH

Mark

Re: how to redirect two seperate sme boxes on one external I
« Reply #2 on: September 21, 2003, 10:49:09 PM »
Sorry I should have mentioned the fact that I am running in server mode not server and gateway. I use a router to do the job.

Any other ideas?

Terry

Re: how to redirect two seperate sme boxes on one external I
« Reply #3 on: September 21, 2003, 10:56:22 PM »
Try ProxyPass on the first server, which allows you to specify another server for certain URL's.  Not sure if it works in Server Only mode or not, it's usually used on Server?gateway machines.

Mark

Re: how to redirect two seperate sme boxes on one external I
« Reply #4 on: September 21, 2003, 11:00:08 PM »
You are right?
I tried ProxyPass with no success on server only, I heard Dungong has a redirector?
Just can't find it anymore.

You guys are great, very quick replies

Thanks alote,
Mark

Mark

Re: how to redirect two seperate sme boxes on one external I
« Reply #5 on: September 21, 2003, 11:26:46 PM »
Terry you are the man!

Because you got me working with ProxyPass again I got to thinking?

I just downloaded the advanced virtual domains add on RPM. Set it up and VOLA

It worked like a charm !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Graeme, not to forget you either ! Thanks for your help dude

Mark

Terry

Re: how to redirect two seperate sme boxes on one external I
« Reply #6 on: September 21, 2003, 11:55:52 PM »
Advanced Virtual Domain add-on?  Please give us more details....

Mark

Re: how to redirect two seperate sme boxes on one external I
« Reply #7 on: September 22, 2003, 12:24:50 AM »
It is a virtual domain add on which piggy backs on top of the original virtual domain currently in SME 5.

What it allows you to do is forward mail and web traffic as it is queried to your servers named/DNS settings, this reduces the load on your server but is invisible to internal users.

With both virtual domain and advanced virtual domain I created the domain name needed.

Then in ProxyPass I setup the Internal IP address needed to direct the traffic to other box.

Don't ask me why it did not work with the regular virtual domain and ProxyPass?
No idea.

Soon as I added the adv. virtual domain RPM, it worked like a charm.

Must have activated the nessesary files which are present in server/gateway conifguration, but not in server only configuration.

Mark