Re: [users@httpd] reverse proxy fails on uri escape sequences

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I am also setting up a reverse proxy server. Do you know how to add a charset for libxml2?
It is required for mod_proxy_html
 
Frank Peng. 
 
-----Original Message-----
From: Lewis Hoffman <lewis@xxxxxxxxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Tue, 27 Jun 2006 22:28:22 +0000
Subject: [users@httpd] reverse proxy fails on uri escape sequences

Hello,

I'm running a reverse proxy in apache-2.0.54
For most urls, it's working great.  However, some URI escape sequences cause 404s from apache.  It seems as if they never get to the rewrite rule.

For example, these two URLs:
1) http://wagon.grasscommons.org/c/wiki/new/thisthat
2) http://wagon.grasscommons.org/c/wiki/new/this%2Fthat

access log entries for the two requests, respectively:

67.42.179.239 - - [27/Jun/2006:15:13:49 -0700] "GET /c/wiki/new/thisthat HTTP/1.1" 200 2404 "-" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.3) Gecko/20060326 Firefox/1.5.0.3 (Debian-1.5.dfsg+1.5.0.3-2)"
67.42.179.239 - - [27/Jun/2006:15:13:20 -0700] "GET /c/wiki/new/this%2Fthat HTTP/1.1" 404 218 "-" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.3) Gecko/20060326 Firefox/1.5.0.3 (Debian-1.5.dfsg+1.5.0.3-2)"


rewriteLog entries for the first url:

67.42.179.239 - - [27/Jun/2006:15:12:05 --0700] [wagon.grasscommons.org/sid#6205b8][rid#672bf0/initial ] (2) init rewrite engine with requested uri /c/wiki/new/thisthat
67.42.179.239 - - [27/Jun/2006:15:12:05 --0700] [ wagon.grasscommons.org/sid#6205b8][rid#672bf0/initial] (3) applying pattern '^/(.*)' to uri '/c/wiki/new/thisthat'
67.42.179.239 - - [27/Jun/2006:15:12:05 --0700] [ wagon.grasscommons.org/sid#6205b8][rid#672bf0/initial] (2) rewrite /c/wiki/new/thisthat -> http://localhost:3051/c/wiki/new/thisthat
67.42.179.239 - - [27/Jun/2006:15:12:05 --0700] [wagon.grasscommons.org/sid#6205b8][rid#672bf0/initial] (2) forcing proxy-throughput with http://localhost:3051/c/wiki/new/thisthat
67.42.179.239 - - [27/Jun/2006:15:12:05 --0700] [wagon.grasscommons.org/sid#6205b8][rid#672 bf0/initial ] (1) go-ahead with proxy request proxy:http://localhost:3051/c/wiki/new/thisthat [OK]

rewrite log entries for the second url: none



My virtual host config looks like this:

NameVirtualHost *
<VirtualHost *>
   ServerName wagon.grasscommons.org
   ServerAlias wagn.grasscommons.org

    RewriteEngine On
    ProxyRequests Off
    RewriteRule ^/(.*) http://localhost:3051/$1 [P,L]
    ProxyPassReverse / http://localhost:3051/

   RewriteLog "/var/log/apache2-161/wagon- rewrite.log"
   RewriteLogLevel 4

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


Any ideas?

--
Lewis Hoffman
Grass Commons
lewis at grasscommons dot org


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux