Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 50627 invoked from network); 10 Jan 2004 18:46:05 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Jan 2004 18:46:05 -0000 Received: (qmail 75563 invoked by uid 500); 10 Jan 2004 18:45:47 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 75278 invoked by uid 500); 10 Jan 2004 18:45:45 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 75264 invoked from network); 10 Jan 2004 18:45:45 -0000 Message-ID: <311f01c3d7a9$f6cf4710$0200a8c0@analog> From: "Chris Faust" To: Subject: Run script for directory index Date: Sat, 10 Jan 2004 13:45:47 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_311C_01C3D780.0D605A70" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_311C_01C3D780.0D605A70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey All, I'm trying to have my MP2 script that displays HTML run when someone = hits the docroot (http://www.mydomain.com).. It may be considered somewhat off-topic, but when using standard CGI I = didn't have any problems doing this by just having: "DirectoryIndex /cgi-bin/index.cgi" But I can't seem to accomplish the same thing using MP2 while still = being able to define other dirs (like a image dir).. Here is a trimmed example of my conf file, If I change the to just , I'll get the results I want when hitting = the docroot, but then anything else defined (like the images), just = invokes my MP2 handler. Can someone tell me what I'm missing here? Running MP2, Apache 2 on RH9 Thanks -Chris ServerName domain.info DocumentRoot /websites/domain/site_root ServerAdmin webmaster@domain.info ServerAlias domain.com ServerAlias xxx.xxx.xxx.xxx:80 ErrorLog /websites/domain/logs/error.log CustomLog /websites/domain/logs/access.log combined PerlModule INDEX::Index SetHandler perl-script PerlHandler INDEX::Index DirectoryIndex /index Alias /images "/websites/domain/site_root/html/images/" Order allow,deny Allow from all ------=_NextPart_000_311C_01C3D780.0D605A70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hey All,
 
I'm trying to have my MP2 script that = displays HTML=20 run when someone hits the docroot (http://www.mydomain.com)..
It may be considered somewhat = off-topic, but when=20 using standard CGI I didn't have any problems doing this by just=20 having:
 
"DirectoryIndex = /cgi-bin/index.cgi"
 
But I can't seem to accomplish the same = thing using=20 MP2 while still being able to define other dirs (like a image=20 dir)..
 
Here is a trimmed example of my conf = file, If I=20 change the <Location /index> to just <Location />, I'll get = the=20 results I want when hitting the docroot, but then anything else defined = (like=20 the images), just invokes my MP2 handler.
 
Can someone tell me what I'm missing=20 here?
Running MP2, Apache 2 on = RH9
 
Thanks
-Chris
 
<VirtualHost=20 xxx.xxx.xxx.xxx:80>
        = ServerName=20 domain.info
        DocumentRoot=20 /websites/domain/site_root
        = ServerAdmin webmaster@domain.info
  &nb= sp;    =20 ServerAlias domain.com
        = ServerAlias=20 xxx.xxx.xxx.xxx:80
        = ErrorLog=20 /websites/domain/logs/error.log
      &n= bsp;=20 CustomLog /websites/domain/logs/access.log combined
PerlModule=20 INDEX::Index
<Location=20 "/index">
        SetHandler=20 perl-script
        PerlHandler=20 INDEX::Index
 DirectoryIndex = /index
</Location>
Alias=20 /images "/websites/domain/site_root/html/images/"
<Directory=20 "/websites/domain/html/images">
      = ; =20 Order allow,deny
        Allow = from=20 all
</Directory>
</VirtualHost>
------=_NextPart_000_311C_01C3D780.0D605A70--