> 
> I'm having some problems setting Embperl_Object_Fallback correctly.   
> What I want to do is allow "virtual urls".  I want to 
> purposely link to urls that do not exist.  These urls would 
> logically reside below a directory called /catalog.  The 
> Embperl fallback file inside /catalog would parse the 
> remainder of the requested url and perform some database 
> access based on which url was requested.  In essence, the 
> fallback file becomes a directory handler.  However, I only 
> want it to handle accesses to directories that are not found. 
>  I was able to tweak my settings to send directory requests 
> to my Embperl fallback, but it is happening even to valid 
> directories.  Any suggestions?  Yes
> - I could use a query string to produce the same results, but 
> I want to achieve the clean look and feel that the user 
> thinks they are simply navigating a directory structure.  My 
> configuration is below.
> 

A better way to do this, is to use Embperl application object, e.g.

Embperl_Object_App      myapp.pl

This should conatain some perl code and a sub init, which is called before
your pages are requested. You can change the filename and do your database
accesses herein.

See eg/web/epwebapp.pl for an example

Gerald


> 
> Embperl_AppName           testdeer_embperl_app
> Embperl_Object_Base        base.epl
> Embperl_UriMatch             "\.htm.?|\.epl|[^\.]*$"
> Embperl_Object_Fallback         dhandler.html
> 
> <Files *.html>
>       SetHandler       perl-script
>       PerlHandler      Embperl::Object
>       Options            ExecCGI
> </Files>
> <FilesMatch "[^\.]*$">
>          SetHandler      perl-script
>          PerlHandler     Embperl::Object
>          Options         ExecCGI
> </FilesMatch>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to