You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Scott Ellentuch <ap...@ttsg.com> on 1999/04/16 19:24:01 UTC

mod_proxy/4262: mod_rewrite/mod_proxy interaction problems

>Number:         4262
>Category:       mod_proxy
>Synopsis:       mod_rewrite/mod_proxy interaction problems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Apr 16 10:30:01 PDT 1999
>Last-Modified:
>Originator:     apache@ttsg.com
>Organization:
apache
>Release:        1.3.6
>Environment:
SunOS sif.ttsg.com 5.7 Generic sun4u sparc SUNW,Ultra-1
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.8.1/specs
gcc version 2.8.1
>Description:
2 machines.  DNS used for "load balancing".  When invoking CGI's with
mod_rewrite it would drop information.  Was suggested to be changed from
[R,L] to [P]

Doing so causes:
[Fri Apr 16 12:09:44 1999] [warn] [client 207.99.6.160] handler "cgi-wrapper" not found for: proxy:http://aserver.karupspc.com/lcgi-bin/wwwjoin/signup.cgi
[Fri Apr 16 12:09:44 1999] [error] [client 207.99.6.160] File does not exist: proxy:http://aserver.karupspc.com/lcgi-bin/wwwjoin/signup.cgi

The first message appears on EVERY cgi invocation.  I previously put in a report 
about it but never heard back.  

# /usr/local/etc/httpd/bin/httpd -l|grep proxy
  mod_proxy.c

#  /usr/local/etc/httpd/bin/httpd -L|grep -i proxy
ProxyRequests (mod_proxy.c)
        on if the true proxy requests should be accepted
ProxyRemote (mod_proxy.c)
        a scheme, partial URL or '*' and a proxy server
ProxyPass (mod_proxy.c)
ProxyPassReverse (mod_proxy.c)
        a virtual path and a URL for reverse proxy behaviour
ProxyBlock (mod_proxy.c)
        A list of names, hosts or domains to which the proxy will not connect
ProxyReceiveBufferSize (mod_proxy.c)
NoProxy (mod_proxy.c)
        A list of domains, hosts, or subnets to which the proxy will connect dir
ectly
ProxyDomain (mod_proxy.c)
AllowCONNECT (mod_proxy.c)
CacheRoot (mod_proxy.c)
CacheSize (mod_proxy.c)
CacheMaxExpire (mod_proxy.c)
CacheDefaultExpire (mod_proxy.c)
CacheLastModifiedFactor (mod_proxy.c)
CacheGcInterval (mod_proxy.c)
CacheDirLevels (mod_proxy.c)
CacheDirLength (mod_proxy.c)
NoCache (mod_proxy.c)
CacheForceCompletion (mod_proxy.c)
ProxyVia (mod_proxy.c)
        Configure Via: proxy header header to one of: on | off | block | full


<VirtualHost bserver.karupspc.com>
ServerAdmin webmaster@ttsg.com
DocumentRoot /local/wwwcust/karupspc
Servername bserver.karupspc.com
ErrorLog "|/usr/local/bin/cronolog /usr/local/logs/%Y%m%d/bserver-error_log"
CustomLog "|/usr/local/bin/cronolog /usr/local/logs/%Y%m%d/bserver-access_log" c
ommon
#CustomLog "|/usr/local/sbin/cronolog /usr/local/logs/%Y%m%d/%H-bserver-combined
_log" "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
RefererLog "|/usr/local/bin/cronolog /usr/local/logs/%Y%m%d/bserver-referer_log"
RefererIgnore 204.141.84.129 bserver.karupspc.com
UserDir disabled
HostNameLookups off
IdentityCheck off
ScriptAlias /lcgi-bin/ "/local/wwwcust/karupspc/lcgi-bin/"
<Location /lcgi-bin>
Action cgi-wrapper "/cgi-bin/cgiwrap/karupspc"
SetHandler cgi-wrapper
</Location>
RewriteEngine On
RewriteRule ^/lcgi-bin/wwwjoin/admin/www800.cgi http://aserver.karupspc.com/lcgi
-bin/wwwjoin/admin/www800.cgi [R,L]
RewriteRule ^/lcgi-bin/wwwjoin/signup.cgi http://aserver.karupspc.com/lcgi-bin/w
wwjoin/signup.cgi [R,L]
RewriteRule ^/lcgi-bin/wwwjoin/bsignup.cgi http://aserver.karupspc.com/lcgi-bin/
wwwjoin/signup.cgi [P]
RewriteRule ^/lcgi-bin/ttsgvalidate.cgi http://aserver.karupspc.com/lcgi-bin/tts
gvalidate.cgi [R,L]
ProxyRequests on
</VirtualHost>

>How-To-Repeat:
Install VH on "b" server.  Access http://bserver/lcgi-bin/wwwjoin/bsignup.cgi
Will give above error
>Fix:
N/A
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]