I'm doing soemthing similar right now, where there is no actual document root,
just dynamically generated stuff in a virtual host.
Here is my setup, in the httpd.conf:
<VirtualHost 12.34.56.78:80>
ServerAdmin [EMAIL PROTECTED]
ServerName www.my.uri
ErrorLog logs/error_log
<Location />
SetHandler perl-script
PerlHandler My::Nifty::Module
</Location>
</VirtualHost>
And that's it. Pretty minimal. Everything else is more or less standard (no
major modifications). Note that there is no document root--everything gets
handled by My::Nifty::Module, passed in as extra path info for me to access
if I want it.
darren
Miguel A.L. Paraz ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I hit this months ago but never really solved it... I'm working with the
> WING e-mail package by Malcolm Beattie. In my httpd.conf I have tried:
>
> PerlModule Wing_miranda_herrera_iphil_net::Balance
>
> <Location />
> SetHandler perl-script
> PerlHandler Wing_miranda_herrera_iphil_net::Balance
> </Location>
>
> <Perl>
>
> and:
>
> $Location{"/"} = {
> SetHandler => "perl-script";
> PerlHandler => "Wing_miranda_herrera_iphil_net::Balance";
> };
>
> </Perl>
>
> Neither of these work. When I access /, the module is not invoked, and
> instead, Apache brings up the DocumentRoot.
>
> How can I debug why Apache would choose to ignore the <Location>? Just to
> be sure I also tried it with <Directory> but without luck.
>
> Apache 1.3.9, mod_perl 1.2.1.
>
> (For those working with Wing already, I changed the names of the modules
> since I am doing "virtual hosting" with it.)
>
> Thanks!
> ---m
>
>
> --
> Miguel "Migs" A.L. Paraz IPhil Communications Network, Inc.
> http://www.iphil.net Business Development/Training Group
> 5/F 116 Herrera St., Legaspi Village, Makati City, Philippines +63-2-750-2288
>
>