httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Balabalame" <balabalamerob...@gmail.com>
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>
    ServerName www.mysite.com

    AddOutputFilterByType DEFLATE text/html text/css
application/x-javascript

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

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


When I access http://www.mysite.com/balancer-manager, 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
/balancer-manager<http://proxy.isoche.com:1380/balancer-manager>
*.

Reason: *DNS lookup failure for: www.mysite.com*

But I can access http://www.mysite.com/balancer-manager 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
http://proxy.isoche.com:1380/balancer-manager
(1) go-ahead with proxy request proxy:
http://proxy.isoche.com:1380/balancer-manager [OK]

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

Thanks.

Mime
View raw message