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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 |