HighDots Forums  

Setting DirectoryIndex to handler?

alt.html alt.html


Discuss Setting DirectoryIndex to handler? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Leif K-Brooks
 
Posts: n/a

Default Setting DirectoryIndex to handler? - 02-03-2004 , 05:52 PM






I'm using Apache. I have a handler set up with mod_python, which among
other things serves a page called index.py. Since there's no real file
by that name, Apache ignores it when I put index.py as a DirectoryIndex.
It works if I create a blank file of that name, but that's annoying. Is
there a better way?

Reply With Quote
  #2  
Old   
Whitecrest
 
Posts: n/a

Default Re: Setting DirectoryIndex to handler? - 02-03-2004 , 06:59 PM






In article <JCVTb.830$VP1.652368 (AT) newshog (DOT) newsread.com>,
eurleif (AT) ecritters (DOT) biz says...
Quote:
I'm using Apache. I have a handler set up with mod_python, which among
other things serves a page called index.py. Since there's no real file
by that name, Apache ignores it when I put index.py as a DirectoryIndex.
It works if I create a blank file of that name, but that's annoying. Is
there a better way?

Lief, I don't know the answer, but damn if that wasn't the best
question this forum has seen in 2 weeks. I am not kidding, Thank you
for something different (and new)!

--
Whitecrest Entertainment
www.whitecrestent.com


Reply With Quote
  #3  
Old   
Chris Morris
 
Posts: n/a

Default Re: Setting DirectoryIndex to handler? - 02-04-2004 , 05:47 AM



Leif K-Brooks <eurleif (AT) ecritters (DOT) biz> writes:
Quote:
I'm using Apache. I have a handler set up with mod_python, which among
other things serves a page called index.py. Since there's no real file
by that name, Apache ignores it when I put index.py as a
DirectoryIndex. It works if I create a blank file of that name, but
that's annoying. Is there a better way?
mod_rewrite to internally rewrite /foo/ to /foo/index.py, perhaps?

Not sure how you'd get it to do that only if index.py exists, short of
making the rewrite rule only apply to the appropriate <Directory> or
<Location>

--
Chris


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.