httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Balabalame" <>
Subject [users@httpd] mod_proxy report "DNS lookup failure" when combined mod_proxy and mod_rewrite
Date Wed, 20 Feb 2008 14:56:54 GMT
Hi, all:
    I want to use mod_rewrite to modify some url and pass it to backend
servers。And the following is my config。

<VirtualHost *:1380>

    AddOutputFilterByType DEFLATE text/html text/css

    ProxyPass /balancer-manager !
    ProxyPass /yui !
    ProxyPass /img !
    ProxyPass /js !
    ProxyPass /css !
    ProxyPass / balancer://jycluster/
    ProxyPassReverse / balancer://jycluster/
    <Proxy balancer://jycluster>
        BalancerMember min=10 smax=15 max=20
        BalancerMember min=10 smax=15 max=20

    RewriteEngine On
    RewriteRule ^/balancer-manager$ /balancer-manager [P,L]

When I access, the following error
page returned.
Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request *GET

Reason: *DNS lookup failure for:*

But I can access successfully if I
delete the line that contains "RewriteRule ..."

Why there is a DNS lookup? And How can I modify my config to fix it?


View raw message