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 Thu, 21 Feb 2008 04:26:18 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 ..."

And my rewrite log:
(2) init rewrite engine with requested uri /balancer-manager
(3) applying pattern '^/balancer-manager$' to uri '/balancer-manager'
(2) rewrite '/balancer-manager' -> '/balancer-manager'
(2) forcing proxy-throughput with
(1) go-ahead with proxy request proxy: [OK]

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


View raw message