Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 81511 invoked from network); 28 Jul 2009 17:56:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jul 2009 17:56:44 -0000 Received: (qmail 71827 invoked by uid 500); 28 Jul 2009 17:57:59 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 71803 invoked by uid 500); 28 Jul 2009 17:57:59 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 71794 invoked by uid 99); 28 Jul 2009 17:57:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 17:57:59 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.122.80.9] (HELO smtp.cims.nyu.edu) (128.122.80.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 17:57:49 +0000 Received: from KELFER.BIO.NYU.EDU (KELFER.BIO.NYU.EDU [128.122.61.181]) (authenticated bits=0) by smtp.cims.nyu.edu (8.14.3/8.13.8) with ESMTP id n6SHvRxu007571 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 28 Jul 2009 13:57:28 -0400 (EDT) Message-Id: <4196CEA1-7BBA-4650-BA66-0C62D0A92037@cs.nyu.edu> From: ARTHUR GOLDBERG To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=Apple-Mail-4--86478454 Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 28 Jul 2009 13:54:21 -0400 X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Question on DirectoryIndex --Apple-Mail-4--86478454 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi (Hope this isn't a dupe. I just registered.) Running Server version: Apache/2.2.3 Server built: Jul 6 2009 05:29:28 Our website's accessed at two domains, like site.org and x.site.edu. It's largely driven by Perl programs loaded by mod_perl, but has some static content. I want to configure it so that all requests for directory URLs map to index.html in DocumentRoot. My impression from http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex is that one way would be to have httpd.conf say DirectoryIndex /index.html and have that index.html in turn say but I understand that Refresh isn't recommended (http://en.wikipedia.org/wiki/Meta_refresh ). Furthermore, a test shows that this works for URLs asking for directories in site.org but not x.site.edu. It seemed that another alternative is to define DirectoryIndex /cgi-bin/directory/ in httpd.conf where '/cgi-bin/directory/' is the root directory of requests served by Perl, but that produces an "Attempt to serve directory: /scriptroot/cgi-bin/" error that I didn't expect. BR Arthur Also, is there a way to have a running Apache httpd output the directives it knows? --Apple-Mail-4--86478454 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi

(Hope this isn't = a dupe. I just registered.)

Running
Server version: = Apache/2.2.3
Server built:   Jul  6 2009 = 05:29:28

Our website's accessed at two domains, like site.org and = x.site.edu.
It's largely driven by Perl programs loaded by mod_perl, = but has some static content.
I want to configure it so that all = requests for directory URLs map to index.html in DocumentRoot.

My = impression from = http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex = is that one way would be to have httpd.conf say
DirectoryIndex = /index.html

and have that index.html in turn say
<meta = http-equiv=3D"Refresh" content=3D"0; url=3Dhttp://site.org">

but I understand = that Refresh isn't recommended (http://en.wikipedia.org= /wiki/Meta_refresh). Furthermore, a test shows that this works for = URLs asking for directories in site.org but not x.site.edu.

It = seemed that another alternative is to define
DirectoryIndex = /cgi-bin/directory/

in httpd.conf where '/cgi-bin/directory/' is = the root directory of requests served by Perl, but that produces an = "Attempt to serve directory: /scriptroot/cgi-bin/" error that I didn't = expect.

BR
Arthur

Also, is there a way to have a = running Apache httpd output the directives it = knows?
= --Apple-Mail-4--86478454--