Can mod_rewrite make www1.mysite.com look like www.mysite.com to users?

This is a discussion on Can mod_rewrite make www1.mysite.com look like www.mysite.com to users? within the Linux Web Servers forums, part of the Web Server and Related Forums category; I am looking to use redirection as a way to distribute load across different web servers. By this I mean ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-11-2006
RaysOfSearch
 
Posts: n/a
Default Can mod_rewrite make www1.mysite.com look like www.mysite.com to users?

I am looking to use redirection as a way to distribute load across
different web servers. By this I mean that the first user who types
www.mysite.com will be redirected to www1.mysite.com, the second will
be redirected to www2.mysite.com, the third to www3.mysite.com and so
on.

Can I use mod_rewrite so that even though the user is connected to
www1.mysite.com, the URL which is displayed (in address bar) or
bookmarked is www.mysite.com ?

Are there general concerns about using redirection to distribute Web
server load?

Are there any problems with mod_rewrite and redirections?

Are there any problems with hosting similar URLs, e.g., www1.mysite.com
and www2.mysite.com through different hosting companies with different
datacenters?

  #2 (permalink)  
Old 01-17-2006
Jorey Bump
 
Posts: n/a
Default Re: Can mod_rewrite make www1.mysite.com look like www.mysite.com to users?

"RaysOfSearch" <RayMan6@gmail.com> wrote in news:1137008973.231534.182020
@o13g2000cwo.googlegroups.com:

> I am looking to use redirection as a way to distribute load across
> different web servers. By this I mean that the first user who types
> www.mysite.com will be redirected to www1.mysite.com, the second will
> be redirected to www2.mysite.com, the third to www3.mysite.com and so
> on.
>
> Can I use mod_rewrite so that even though the user is connected to
> www1.mysite.com, the URL which is displayed (in address bar) or
> bookmarked is www.mysite.com ?
>
> Are there general concerns about using redirection to distribute Web
> server load?
>
> Are there any problems with mod_rewrite and redirections?
>
> Are there any problems with hosting similar URLs, e.g., www1.mysite.com
> and www2.mysite.com through different hosting companies with different
> datacenters?


You might want to try round robin DNS records, instead:

www.example.com -> 192.168.1.3
www.example.com -> 192.168.1.4
www.example.com -> 192.168.1.5

This will probably give you better load balancing, since the requests will
go directly from the client to the alternate server. You can monitor the
logs to see how this plays out in practice. And, yes, there is a chance
that complex sites will experience issues with this arrangement. Any
attempt to load balance has a different set pros and cons for each
location. At least this arrangement is likely to keep a client on the same
server for as long as the DNS lookup is cached.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:18 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0