Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: tropicalview on March 20, 2008, 04:53:18 PM

Title: sub domain forward to other computer
Post by: tropicalview on March 20, 2008, 04:53:18 PM
Hi,

I tried to make this work:

we have a sme server as gateway / server with domain abeltasmancur.com
the requests of www.abeltasmancur.com are processed locally.

Now i want to host an website on an other PC to a subdomain like:
admin.abeltasmancur.com

I tried to add this in the Hostnames and addresses:

Hostname Location IP Address Ethernet address Comment Action
admin.abeltasmancur.com Local 192.168.1.5   to admin server Modify  Remove

but when i try to access it it will give me the standard www.abeltasmancur.com webpage (it's local primary hosting)

what do i have to do to make this working?
Title: Re: sub domain forward to other computer
Post by: cactus on March 20, 2008, 08:39:51 PM
what do i have to do to make this working?

Remove created domain per server-manager and try ProxyPass (http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass). After that is will reappear in server-manager, do not modify it there as it should work with the commands in the wiki.
Title: Re: sub domain forward to other computer
Post by: tropicalview on March 20, 2008, 09:10:52 PM
Hi Cactus,

it looks like the command in the documentation is not correct, or please correct me if i'm doing this wrong:

Code: [Select]
[root@studenten-srv ~]# db domains set adminabeltasmancur.com
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
[root@studenten-srv ~]#

Title: Re: sub domain forward to other computer
Post by: cactus on March 20, 2008, 09:30:08 PM
Hi Cactus,

it looks like the command in the documentation is not correct, or please correct me if i'm doing this wrong:

Code: [Select]
[root@studenten-srv ~]# db domains set adminabeltasmancur.com
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
[root@studenten-srv ~]#

You are right, some one has trying to improve readability and made a mistake in rearranging parameters, it should now be fixed.
Title: Re: sub domain forward to other computer
Post by: tropicalview on March 20, 2008, 09:52:28 PM
Hi Cactus,

You are just Great....

It works, and with so little effort.
Imagine you have to do this in windows, you must install the whole XXX Isa server and spend a 1000 dollars to get this done.

Thanks a lot.
Title: Re: sub domain forward to other computer
Post by: cactus on March 20, 2008, 09:59:58 PM
Hi Cactus,

You are just Great....
If you would know me you would say I am tall and my advice was great :-) You're welcome.

It works, and with so little effort.
Imagine you have to do this in windows, you must install the whole XXX Isa server and spend a 1000 dollars to get this done.
I don't know, it should work with Apache on windows as well as long as mod_proxy is loaded I guess... never had to try as I happily run SME Server :-)
Title: Re: sub domain forward to other computer
Post by: tropicalview on March 20, 2008, 10:05:45 PM
To be honest, this modification was needed because the second server at this school will be transfered from windows to SME.

So i'm really happy with it to.

Happy easter.