these
.phtml files don't actually exist and FilesMatch
wants a physical file on the server. I'm curious if my
approach is the best way.
httpd.conf
--
PerlModule Apache::Controller
Directory /usr/local/apache/htdocs
SetHandler perl-script
PerlHandler Apache::Controller
/Directory
Apache
Ooops, that should be:
Apache::Controller (simplified for clarity)
---
package Apache::Controller;
use strict;
use Apache::Constants qw( :common );
sub handler {
my $r = shift;
my $cv;
if( $r-uri =~ m{\.phtml$} ) {
$cv =
, so these
.phtml files don't actually exist and FilesMatch
wants a physical file on the server. I'm curious if my
approach is the best way.
It's easier to use a directory structure, i.e. everything under /perl/ is
handled by your controller module. You should also look at
Apache::Dispatch
--- Perrin Harkins [EMAIL PROTECTED] wrote:
It's easier to use a directory structure, i.e.
everything under /perl/ is
handled by your controller module. You should also
look at
Apache::Dispatch.
Thanks. Unfortunately I'm trying to please the
designers and forcing them to put everything
dss [EMAIL PROTECTED] said something to this effect on 09/17/2001:
The issue is that I'm using virtual urls, so these .phtml
files don't actually exist and FilesMatchwants a physical file
on the server. I'm curious if my approach is the best way.
Shouldn't LocationMatch be what you want?