On Wed 22 Jul 2009, Adam Prime wrote:
Eric Lease Morgan wrote:
On Jul 22, 2009, at 12:05 AM, Adam Prime wrote:
By first changing my Location directive to the following:
Location /sandbox/semantic-web/
SetHandler perl-script
PerlHandler Apache2::Alex::SemanticWeb
/Location
On Jul 22, 2009, at 10:27 AM, Torsten Foertsch wrote:
If you want, it's actually possible to take this even further and
remove rewrite completely.
Location /etexts/id/
SetHandler perl-script
PerlHandler Apache2::Alex::SemanticWeb
/Location
Then alter your handler's code to parse $r-uri
How do I get Apache's RewriteRule, Location, and PerlHander to work
nicely together?
I have a the following Hello World mod_perl module:
package Apache2::Alex::SemanticWeb;
use Apache2::Const -compile = qw( OK );
use strict;
sub handler {
my $r = shift;
$r-content_type(
Eric Lease Morgan wrote:
What am I doing wrong? Does an actual file need to exist in order for
mod_perl to find it?
No.
How should I edit httpd.conf so I can: 1) rewrite
GET requests, and 2) execute the result in a mod_perl module?
Try the mod_rewrite passthrough (PT) flag:
RewriteRule
On Jul 21, 2009, at 9:45 PM, Nick Wellnhofer wrote:
What am I doing wrong? Does an actual file need to exist in order for
mod_perl to find it?
No.
I didn't think so, but what sort of configuration do I need to do so
my mod_perl packages get executed without the existence of a file?
--
Eric Lease Morgan wrote:
On Jul 21, 2009, at 9:45 PM, Nick Wellnhofer wrote:
What am I doing wrong? Does an actual file need to exist in order for
mod_perl to find it?
No.
I didn't think so, but what sort of configuration do I need to do so my
mod_perl packages get executed without