I am using the nginx http_auth_request_module for sending an authentication subrequest to another server (apache 2.4). The authentication mechanism works perfectly, however the module seems to only process HTTP 200 and 401 answers correctly.
If i refresh the webpage in the browser where i just got authenticated - nginx ends up in a 500 internal server error. If i press "refresh" in the browser again - the webpage will be displayed again correctly.
I checked the logs and for refreshing there comes a HTTP 304 Not Modified as reply which the nginx module can not process.
*2019/08/09 11:18:26 [error] 7#7: 565 auth request unexpected status: 304 while sending to client, client:
Is there any workaround or is this module just poorly developed?