Re: rewrite url in modperl

2010-02-01 Thread Torsten Förtsch
On Monday 01 February 2010 15:19:34 [email protected] wrote: > > Keep in mind that /path/12345.mp4 is still a valid URI and hence can be > > requested by the browser. But you can check if the request is the result > > of an internal redirect by checking $r->prev and deny it unless set. >

Re: rewrite url in modperl

2010-02-01 Thread moli
2010/2/1 Torsten Förtsch : > On Monday 01 February 2010 15:03:53 [email protected] wrote: >> 2010/2/1 Torsten Förtsch : >> > If you don't want the browser to see the actual location of the mp4 file >> > then you need $r->internal_redirect: >> > >> > use Apache2::SubRequest (); >> > ... >

Re: rewrite url in modperl

2010-02-01 Thread Torsten Förtsch
On Monday 01 February 2010 15:03:53 [email protected] wrote: > 2010/2/1 Torsten Förtsch : > > If you don't want the browser to see the actual location of the mp4 file > > then you need $r->internal_redirect: > > > > use Apache2::SubRequest (); > > ... > >if ( is_valid_ip($ip) ){ > >

Re: rewrite url in modperl

2010-02-01 Thread moli
2010/2/1 Torsten Förtsch : > If you don't want the browser to see the actual location of the mp4 file then > you need $r->internal_redirect: > > use Apache2::SubRequest (); > ... >    if ( is_valid_ip($ip) ){ >        $r->internal_redirect('/path/12345.mp4'); >        return Apache2::Const::OK; >

Re: rewrite url in modperl

2010-02-01 Thread Torsten Förtsch
On Monday 01 February 2010 14:10:17 [email protected] wrote: > I have this modperl handler: > > use Apache2::RequestRec (); > use Apache2::Connection (); > use Apache2::RequestUtil (); > use Apache2::ServerUtil (); > use Apache2::Log (); > use Apache2::Request (); > > use Apache2::Cons