LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-23-2008, 03:19 AM   #1
gnu_gcc
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
i need help for load balancing setting apache web server


ProxyPass /balancer-manager !

ProxyPass / balancer://mycluster/ stickysession=BALANCEID nofailover=On
ProxyPass /go http://192.168.1.68/go
ProxyPassReverse /go http://192.168.1.68/go
ProxyPassReverse / http://192.168.1.66
ProxyPassReverse / http://192.168.1.68

<Proxy balancer://mycluster stickysession=BALANCEID>
BalancerMember http://192.168.1.66 route=http1

BalancerMember http://192.168.1.68 route=http2

ProxySet lbmethod=byrequests
</Proxy>


The above configuration is my load-balancing httpd file. I have 3 webserver and two of them are backend web servers (http://192.168.1.66 , http://192.168.1.68). One of my backend web servers contains a directory called go. When i enter URL "http://localhost/go/index.php", Sometime it works as it proxies to http://192.168.1.68 and sometime it doesnt work as it proxies to http://192.168.1.66 .

So what should i do in order to make it works at all times
 
Old 06-23-2008, 04:20 AM   #2
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
Hi,

I might be misunderstanding you here, but you either need to make the "go" directory exist on both servers, or you'll probably need to use mod_rewrite to achieve this. Could be wrong bu that's what it looks like to me. Simplicity is always best in my opinion so can you make this exist on both servers?

Cheers,
Steve
 
Old 06-23-2008, 03:06 PM   #3
gnu_gcc
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
cos i want some file to be store in one server

Hi
Because i want one backend web server to store (report data) (localhost/go/report.php) and other backend server to store forum page (localhost/forum/page.php) . So i should use mod-rewrite in order to make it work right?
 
  


Reply

Tags
apache



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Web hosting / Load balancing phatboyz Linux - Networking 1 09-08-2006 06:10 AM
Load balancing for a web site czamora Linux - Software 2 06-12-2006 04:29 PM
Setting Up a linux router - with load balancing ? yahooadam Linux - Networking 5 01-30-2006 09:37 AM
setting up a web server using apache Whatshisface Linux - Newbie 14 12-11-2004 03:01 PM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration