[Vienna-pm] apache-mod_perl und homedirs
Tom Schindl
tom.schindl at profile.co.at
Wed Mar 3 08:35:05 CST 2004
Ok. Jetzt hab ich's glaube ich verstanden aber nochmals in meinen
Worten:
1) Alles unter / soll von einem mp-Handler ausgeliefert werden
2) Wenn die URL /~(\w+) beginnt dann soll, soll auf /home/username zu
geriffen werden.
Das ist ganz einfach:
----------------------8<----------------------
use Apache::Constants qw(:common);
sub handler {
$r = shift;
if( $r->uri =~ |~(\w+)/public_html|o ) {
## let default apache handle the request
return DECLINED;
}
## your mp-code goes here
}
----------------------8<----------------------
Gruß
Tom
On Wed, 2004-03-03 at 15:12, Bernhard Bauch wrote:
> >
> >http://httpd.apache.org/docs/mod/mod_userdir.html
> >
> >
>
> das ist ja eh schon drinnen:
> <IfModule mod_userdir.c>
> UserDir public_html
> </IfModule>
>
> ist ein standard httpd.conf. .es funktioniert eh ..wenn ich das modperl
> raushaue aus <location /> ..dann geht er eh ganznormal ins public_html
> ..wie gewohnt ...
>
> andere idee?
--
\\\||///
\\ - - //
( @ @ )
-oOo--( )--oOo----------------------------------------------------------
___ ___ tom schindl
o __ / / / innovative medientechnik planung AG
/ /\/\/ / / /__/ / __ mailto:tom.schindl at profile.co.at
/ / / / /_/ / / /___/ http://www.impire.de
/ voice:+43(512)34193431,fax:+43(512)34193420
Eduard-Bodem-Gasse 6, A-6020 Innsbruck, Austria, Software Engineering
------------------------------------------------------------------------
More information about the Vienna-pm
mailing list