httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Bowman <>
Subject [users@httpd] redirects conundrum
Date Fri, 12 Sep 2008 14:06:32 GMT

I'm struggling a bit with mod_alias, wondering if someone can help.

I have the following configuration, running against httpd 2.2.6

<Location /balancer-manager>
    SetHandler balancer-manager
    Order Deny,Allow
    Deny from all
    Allow from all

<VirtualHost *:80>
    ServerAlias *

    DocumentRoot "/var/www/htdocs"
    <Directory "/var/www/htdocs">
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    Redirect permanent /a
    Redirect permanent /foo
    Redirect permanent /login
    Redirect permanent /

    ProxyPass /bar balancer://barcluster stickysession=BARID
    ProxyPassReverse /bar
    ProxyPassReverse /bar
    ProxyPassReverse /bar
    <proxy balancer://barcluster>
        BalancerMember loadfactor=1
        BalancerMember loadfactor=1
        BalancerMember loadfactor=1

    ProxyPass /bar !
    ProxyPass /a/ balancer://foocluster/
    ProxyPassReverse /a
    <proxy balancer://foocluster>
        BalancerMember loadfactor=1

In a nutshell, requests to /bar go to to one cluster, and basically
"/everything%20else" gets redirected to "/a/everything%20else", and sent
to a separate cluster.  We need this behaviour.

What I'm wondering is, how can I prevent /balancer-manager from
redirecting to /a/balancer-manager?  I've tried everything obvious, and
the only way I can make it work is to remove the line "Redirect
permanent /" which breaks everything else.

Is there a way to prevent /balancer-manager from redirecting similar to
how /bar doesn't redirect, but without proxying?

Thanks in advance,

Eric Bowman
Boboco Ltd

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message