[mod_python] Mapping a URI to pages dynamically.

Dustin Mitchell dustin at ywlcs.org
Tue May 20 06:40:36 EST 2003


On Tue, May 20, 2003 at 09:30:22AM +0200, David Fraser wrote:
> 
> I have found that we need to create physical directories in the Apache 
> html directory corresponding to any subdirectories we want to handle in 
> the Python script, otherwise we get a 404 error. Has anyone else found 
> this? Is the SetLocation the answer for this?
> The reason I would like to know is we would like to use dynamically 
> generated path names without them existing on the disk

For some unknown reason Apache checks that req.filename exists.  I usually
just point it at the translation script itself (__file__).

Dustin

-- 

  Dustin Mitchell
  dustin at ywlcs.org/djmitche at alumni.uchicago.edu
  http://people.cs.uchicago.edu/~dustin/


More information about the Mod_python mailing list