Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 14033 invoked from network); 7 Jul 2004 19:29:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Jul 2004 19:29:58 -0000 Received: (qmail 38461 invoked by uid 500); 7 Jul 2004 19:29:56 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 38325 invoked by uid 500); 7 Jul 2004 19:29:55 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 38278 invoked by uid 99); 7 Jul 2004 19:29:54 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,IP_LINK_PLUS,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Date: Wed, 7 Jul 2004 15:29:41 -0400 From: Dmitri Tikhonov To: dev@apr.apache.org Subject: Proxying DirectoryIndex files. Message-ID: <20040707192941.GF3656@netilla.com> Mail-Followup-To: dev@apr.apache.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3yNHWXBV/QO9xKNm" Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --3yNHWXBV/QO9xKNm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear list, 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 ProxyPass http://127.0.0.1:8088/index.cgi 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 =20 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=3Diso-8859-1 =20 404 Not Found

Not Found

The requested URL / was not found on this server.

I googled a bit and searched apache bug system and found these two links: http://archive.apache.org/gnats/3596 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D15112 Combining the patches provided in these two, I was able to get the proxying to work. The questions: - what is the status of this problem? - is this considered a problem? According to the first link, this goes back five and a half years. - what is to be fixed, mod_dir or mod_proxy? My setup: Linux 2.4, Apache 2.0.46. Thank you, - Dmitri. --3yNHWXBV/QO9xKNm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFA7E8lEVjlCyBA0pIRAuDGAJ9x5SLeIdynBy/HE5XVqA9IU3r1PwCcDRUo cIBFYrkMhh12t5Fo1oifEeo= =5C17 -----END PGP SIGNATURE----- --3yNHWXBV/QO9xKNm--