Forum Moderators: phranque

Message Too Old, No Replies

Have sub/domain on 2 servers (win/linux)

Possible to host sudomain on Linux, and www on Win?

         

lazerzubb

9:13 pm on Jan 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I wonder if it is possible to host www.domain.com on a IIS 5 machine, and then host subdomain.com on a Linux - Apache?

And if it's possible do anybody have any documentation on it?

lorax

9:21 pm on Jan 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Technically I think it's possible. You'd need to set the DNS to point to a different IP though. Say the main site www.widgets.com is at 200.10.100.7 and you want to have blue.widgets.com on the other server. Your DNS entry for blue.widgets would just point to the second IP (200.10.100.8).

If you don't have a block of IPs to play with, then you might need to use internal addressing and then I'm in over my head. ;)

dingman

2:33 am on Jan 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Lorax does have the right idea with multiple IPs. If you've only got one IP, though, I can only think of solutions too convoluted to be worth implementing.

BjarneDM

3:37 pm on Jan 5, 2003 (gmt 0)

10+ Year Member



One idea that comes to my mind:
If you've got two computers on a LAN you've also got a router between the LAN and the Net. Thus, it should be possible to use .htaccess to rewrite the URLs of one of the domains to include a portnumber other than 80 like this: [sub.domain.xxx:1234...] and then have the router pass these to the other webserver. So:
1) www.domain.xxx connects to port 80 and is served
2) sub.domain.xxx connects to port 80
the browser is told to use sub.domain.xxx:1234 instead
the browser retries with this and is served