I'd like to be able to set a DocumentRoot for my VH that redirects all "not found" requests to another DocumentRoot altogether. But I don't want a redirect -- the URL needs to stay the same.

Is this possible?

Accepted Answer

Is there some reason you couldn't use a script to do this? Check for each file in turn based on the params passed, then either stream the file or send a 404. You could even use URL rewriting and have the paths simply appear to be the normal file names.

This just strikes me as something more appropriate for the application to do than the configuration.

Written by Andrew Barber
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki