[cgiapp] Re: CGI::Application::Dispatch help

fREW Schmidt frioux at gmail.com
Mon Jan 19 14:34:22 EST 2009


> What is your document root? And what is your actual directory structure like
> under that root?

    DocumentRoot "C:/Documents and Settings/frew/My
Documents/Code/aircraft_ducting"

Code/aircraft_ducting/
-config.pl
-ACD
--Controller.pm # Note: this is my base controller and I don't plan on
having any real pages in it
--Dispatch.pm
--Model.pm
--Controller
---Station.pm
--Model
---Shop.pm
--View

I don't think that the DocumentRoot matters though.  This is the
actual config for this VirtualServer:

#{{{ Aircraft Ducting
<VirtualHost *:8080>
   ErrorLog "C:/Documents and Settings/frew/My
Documents/Code/aircraft_ducting/logs/error.log"
   <Perl>
      use lib 'C:/Documents and Settings/frew/My
Documents/Code/aircraft_ducting';
      $ENV{MODE} = 'development';
   </Perl>
    ScriptAlias / "C:/Documents and Settings/frew/My
Documents/Code/aircraft_ducting"
    DocumentRoot "C:/Documents and Settings/frew/My
Documents/Code/aircraft_ducting"
   <Location  />
      SetHandler perl-script
      PerlHandler ACD::Dispatch
       Order allow,deny
       Allow from all
   </Location>
</VirtualHost>
#}}}

I think the Location probably tramples the DocumentRoot and
ScriptAlias directives.

But obviously I am wrong about something :-)

-fREW


More information about the cgiapp mailing list