Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Virtual Directories

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


willfould at gmail

Aug 29, 2008, 1:26 PM

Post #1 of 2 (665 views)
Permalink
Virtual Directories

Hello -

This has got to be very common:

I've got a list of directories:

http://www.example.com/foo
http://www.example.com/bar
http://www.example.com/.....

These directories don't exist in the web root but map to the real location
on the file system:

/var/customers/12345
/var/customers/12346
/var/customers/.....

... (location determined by a database/memcached lookup).

Assuming my code can look in an existing database/memcache with the
requested URI segment, can someone suggest the lightest/fastest ways to
accomplish this or provide a decent link to a better discussion?


Thanks in advance!!


perrin at elem

Aug 29, 2008, 2:51 PM

Post #2 of 2 (607 views)
Permalink
Re: Virtual Directories [In reply to]

On Fri, Aug 29, 2008 at 4:26 PM, Will Fould <willfould [at] gmail> wrote:
> Assuming my code can look in an existing database/memcache with the
> requested URI segment, can someone suggest the lightest/fastest ways to
> accomplish this or provide a decent link to a better discussion?

Some options:
- mod_rewrite
- PerlTransHandler
- PerlResponseHandler that sends the actual file

If you can use mod_rewrite, that's the lightest option.

- Perrin

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.