httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29961] New: - DirectoryIndex'es fail to get proxied.
Date Wed, 07 Jul 2004 21:38:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29961>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29961

DirectoryIndex'es fail to get proxied.

           Summary: DirectoryIndex'es fail to get proxied.
           Product: Apache httpd-2.0
           Version: 2.0.46
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_dir
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: dmitri@netilla.com
                CC: minfrin@sharp.fm


I have set up a dual apache system -- a front-end and a back-end that
runs CGI scripts.  I wanted to proxy all .cgi files in a directory,
including index.cgi, which is set up by DirectoryIndex.  I have the
following configuration:

  DirectoryIndex index.cgi
  <Location /index.cgi>
    ProxyPass http://127.0.0.1:8088/index.cgi
  </Location>

However, by default, this does not work:

  [root@plato root]# telnet localhost 80
  Trying 127.0.0.1...
  Connected to localhost.localdomain (127.0.0.1).
  Escape character is '^]'.
  GET / HTTP/1.1
  Host: plato

  HTTP/1.1 404 Not Found
  Date: Wed, 07 Jul 2004 19:26:14 GMT
  Server: Apache
  Content-Length: 198
  Content-Type: text/html; charset=iso-8859-1

  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>404 Not Found</title>
  </head><body>
  <h1>Not Found</h1>
  <p>The requested URL / was not found on this server.</p>
  </body></html>

This bug is similar to bug 15112, only the patch provided there does not work in
my case (not sure about mod_rewrite).  I found an old thread:
http://archive.apache.org/gnats/3596 which allowed me to patch mod_dir.c to
allow such proxying (note rr->proxyreq check).

It is not clear however, whether mod_dir or mod_proxy is to be fixed.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message