Re: Setting the status code

2013-08-06 Thread Dennis Jacobfeuerborn
On 06.08.2013 13:31, Richard Kearsley wrote: On 06/08/13 04:02, Dennis Jacobfeuerborn wrote: Since I determine the reason for the denied access in lua a way to do it there would also help. I already tried "nginx.status = 403" followed by a "nginx.exec('/reason1')" but while the right page is di

Re: Setting the status code

2013-08-06 Thread Richard Kearsley
On 06/08/13 04:02, Dennis Jacobfeuerborn wrote: Since I determine the reason for the denied access in lua a way to do it there would also help. I already tried "nginx.status = 403" followed by a "nginx.exec('/reason1')" but while the right page is display the status code returned gets reset to

Re: Setting the status code

2013-08-06 Thread Dennis Jacobfeuerborn
On 06.08.2013 08:29, mex wrote: let your app handle and deliver error-pages See basically all I want to do is return a single static html file and having to set up php/python/etc. just to serve this file seems like overkill to me. This is pretty much the most simple case for a web server to

Re: Setting the status code

2013-08-05 Thread mex
let your app handle and deliver error-pages Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241621,241626#msg-241626 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Setting the status code

2013-08-05 Thread Dennis Jacobfeuerborn
Hi, I'm wondering how I can set a status code and still deliver a custom web page? Specifically I want to use a status code of 403 Forbidden but depending on the exact reason I want to display different custom error pages for that case. When I use the "return 403" directive I can no longer deli