Jump to content

two webservers in one domain?


Recommended Posts

Hi

I'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


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 >> Linux

and home.anyname.com would resolve to ip: *.*.*.2 >> Windows

Otherwise, 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/any

not 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 by -I-
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...