mod_proxy_balancer and rewrite question

This is a discussion on mod_proxy_balancer and rewrite question within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, Given this VirtualHost config: <VirtualHost *:80> ServerName myserver ServerAlias myserver.lucasfilm.com RewriteEngine On ProxyRequests Off <...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-24-2008
jon
 
Posts: n/a
Default mod_proxy_balancer and rewrite question

Hi,

Given this VirtualHost config:

<VirtualHost *:80>
ServerName myserver
ServerAlias myserver.lucasfilm.com

RewriteEngine On
ProxyRequests Off

<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>

<Location /balancer-manager>
SetHandler balancer-manager
</Location>

<Proxy balancer://some_website>
BalancerMember http://server1.lucasfilm.com:8003/site route=w1
BalancerMember http://server2.lucasfilm.com:8033/site route=w2
</Proxy>

<Location />
Order allow,deny
Allow from all
</Location>

<Location /balancer-manager>
SetHandler balancer-manager

Order Allow,Deny
Allow from all
</Location>

ProxyPass / balancer://some_website lbmethod=byrequests

RewriteRule ^/(.*) http://localhost:8003/VirtualHostBase/http/%{SERVER_NAME}:80/site/VirtualHostRoot/$1
[L,P]

</VirtualHost>

Will my site get load balanced before the rewrite rule goes into
effect or am I just hitting the same server and getting my rewrite?

Thanks!

Jon
 


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 11:51 PM.


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