My server gets a lot of requests for a movie that I deleted well over a year ago. I just noticed that the HTTP spec includes a "Gone" status code: 410. I used the mappings to redirect requests for the movie to an error page.

Here's a link for the movie:
http://rich.richardklein.org/movies/test.mpg
and here's the mapping I used for it:
[aliases]
/movies/test.mpg = ../messages/gone.htm

My main problem is that the surfer's browser gets the error page, but gets a 200 status code instead of a 410:
"GET /movies/test.mpg HTTP/1.1" 200 375 0 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7"
So how do I get Sambar to send a 410 status code?


Also, is it okay to use the parent directory characters (../) in the mapping above? It seems to work, but I'm concerned that bumping the surfer up out of the docs directory could introduce a security weakness.

Thanks!
        -Rich



-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/





Reply via email to