Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Redirecting HTTP request to another webserver

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-31-2008   #1 (permalink)
Just Joined!
 
Join Date: Oct 2008
Posts: 1
Question Redirecting HTTP request to another webserver

Hi All,

Can you please answer my following question:

I have two web servers; one is based on Linux Operating System and the second one is based on AIX OS, and both are geographically apart, with no NFS (Network File System) between them.

Suppose the client makes a request to one of the web servers to undertake his task. But when one of the servers is down, the job has to be redirected (either IP level with packet rewriting or at HTTP level or any other method) to the other web server.

Again, I may want to redirect any client request from one server to the other, maybe based on load or based on any other logic


My questions are:
i) Is it possible to implement this model (ie, one: redirection when one
server is down, and the second: redirection based on some other logic such
as load) using the Apache Tomcat Server. If it is possible with Tomcat, please help us to know more details as to how this can be implemented by
providing an appropriate link

ii) If the Server-1 is down which component will take care of
redirecting the job into next nearest Server

Thanks and Regards,
B.Arunachalam
barunva is offline  


Reply With Quote
Old 10-31-2008   #2 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 1,030
this can be done with simple load balancing. for http you can use pen, haproxy, or lvs.

I prefer lvs with ldirectord and heartbeat for highavailability but googling any of those should work. pen and haproxy are very easy to use but I would only recommend using it for http.
jledhead is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:27 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2