I have an Nginx server configured as a reverse proxy for Apache. This server serves both HTTP and HTTPS, since some URLs are HTTPS only Nginx returns 403 to those without relaying the request to Apache. The problem is that after some time running(sometimes a day, sometimes a week) Nginx will start returning 403 to one specific URL(that is not HTTPS only) when asked over HTTP, if asked over HTTPS it works. All other URLs work as expected. When this starts happening the request seems to not even be relayed to Apache, since Apache logs show no request for that URL. Restarting Nginx solves the problem. Nginx error logs have no entries.
Does any one have any ideas what I should be looking into?
Configuration: http://pastebin.com/Vc7bhjR6 and piXBuc2T
I replaced domain names with < domain > and < domain2 >.
The logs are obviously enormous, this an excerpt that show the problem occurring.