Serving requests for non-existent directories. (with for example mason)

This is a discussion on Serving requests for non-existent directories. (with for example mason) within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I've run into the following problem again and again. I wish serve files from non-existent directories. This ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-11-2003
Myriad
 
Posts: n/a
Default Serving requests for non-existent directories. (with for example mason)


Hi,

I've run into the following problem again and again.
I wish serve files from non-existent directories.
This may seem a little strange since there will not
be any files there. So look at the following idea:

There's a request like
http://some.server.com/town/street/house/number.html
it could be
http://www.paint.com/newyork/42nd/thebigblueone/23.html
or whatever.

Now in my website I don't want to have all the possible streets and houses
as directories. Previously I solved this by rewriting the urls to for
example:
http://www.paint.com/site.script?city=newyork
&street=42nd&house=thebigblueone&number=23
But the rewriting quickly becomes complex, inflexible or both.
Now if I had some way of generating the correct responce of the right
handler were called, how do I configure apache to let the handler and not
respond with a requested url not found?

The system we use at work does it, but I'm currently looking more into
mason dhandlers, but how do you configure apache 1.x for that?

I hope that was clear enough,

thanks.








  #2 (permalink)  
Old 12-11-2003
Davide Bianchi
 
Posts: n/a
Default Re: Serving requests for non-existent directories. (with for example mason)

Myriad <myriad@xs4all.nl> wrote:
> handler were called, how do I configure apache to let the handler and not
> respond with a requested url not found?


Use a ScriptAlias directive to handle the request to a script and
process the data in your CGI. See how mailman does it.

Davide
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0