wakeup Posted November 24, 2005 Share Posted November 24, 2005 HiI'm goint to have two web servers, one linux and another windows. I want have two webs in same domain. I want go to http://www.mydomain.com and enter to linux webserver, and writing http://www.mydomain.com/any go to windows webserver. But I want to Url don't change of domainname. I want to It be transparent for users and google robot. How can I do it? Could I do it with alias?Thanks____________________Hip Hop Directo Link to comment Share on other sites More sharing options...
zivan56 Posted December 1, 2005 Share Posted December 1, 2005 You need to have a gateway proxy so that it requests the apropriate URL from the server you want. An alternative is to get another IP (or use a different port) for the linux server, and make a hidden frame at http://www.mydomain.com/anyto load www.mydomain.com:555 or whatever port you forward for the linux server. Link to comment Share on other sites More sharing options...
-I- Posted December 7, 2005 Share Posted December 7, 2005 (edited) The thing he wants IS possible with correct mod-rewrite installed on apache, But i realy would advice against this. A: because it will obviously drain lots if resources, on the www. machine, In this case, i'r better recomend, debating on why to host both 1 windows domain webserver, and a linux webserver on the same domain. where, an extra domain name would cost no more that $20 a year at most, Another,( chaeaper) way, would be to, change some rulles in your DNS reccords, so www.anyname.com resolves to ip: *.*.*.1 >> Linuxand home.anyname.com would resolve to ip: *.*.*.2 >> WindowsOtherwise, it would involve writing rewrite lines, on your apache webserver so forward any anyname.com/<var> to be server to a diferend server. BUT: in this situating, it would double the load in your linux webserver. because it now proxy's the windows requist and also has to host the linux request as well, replying on, and make a hidden frame at http://www.mydomain.com/anynot only will this hurt older browsers. it will also make any sites on th other server, be non-dynamic, (for example refreshing ' test27.html' loaded in the frame (from a internal link <a href> opject, e would send you right back to 'index.html'Believe me, you should, better use a diferent hostname. and even maybe ask yourself why you even nead 2 webservers, - (absolutely NOT ment as flamebait: But - if you dont know these kind of things, - you may well also be unfamiliar with other things about webservers, - and, probebly just need 1 (either linux or windows) webserver. at all.Running both a windows and a linux server, would imply to me you are going run both ISS with ASP# or ASP.NET even thoug the both also run on unix, verry fast and very stable, - so do perl and php on IIS, but if it realy required for you to run both at the same domain, - I may be willing to point you in the right direction on adding rewrite config to your webserver. Edited December 7, 2005 by -I- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now