try_files and content type

Xavier Grangier grangier at gmail.com
Sat Feb 14 15:40:48 MSK 2009


>>        error_page 599 = @django;
>
> What is 599 code ?
>

I picked an un used code to do stuff like this :

location @django {
	fastcgi_pass localhost:3006;
}
	
if ($request_method ~* POST ) {
	return 599;
}

I couldn't figure out how to it a more regular way. Do you think it's  
a bad idea ?

> The attached pacth should fix the bug.

works like a charm. Thanks a lot.

xav





More information about the nginx mailing list