Thursday, July 09, 2009

Negotiation in Apache

In Apache HTTP web server (v2.2), If the browser requesting an image ( for example without extension, such that, the server can resolve the issue automatically by search all files under "images" directory that match example.*. The reason behind this is the feature of "Content Negotiation" in Apache Web Server, it seems like this is only the feature for v2.2 or above.

The effect of MultiViews is as follows: if the server receives a request for /some/dir/foo, if /some/dir has MultiViews enabled, and /some/dir/foo does not exist, then the server reads the directory looking for files named foo.*, and effectively fakes up a type map which names all those files, assigning them the same media types and content-encodings it would have if the client had asked for one of them by name. It then chooses the best match to the client's requirements.

For more information, go to:

No comments: