I am running Magento (ecommerce PHP app) behind nginx as a reverse proxy to Apache which is running the PHP app. Static content is served directly by nginx. Magento has a "maintenance mode" which uses a 503 HTTP response. With my configuration when maintenance mode is enabled nginx returns a blank page with a 500 response instead of Magento's nice maintenance mode page with the 503 response. How can I make nginx let the 503 page pass through to the client?
I know this is an rather old thread.
- But why don't you just let nginx serve both static and dynamic content ?
I mean, nginx is already a webserver that can be used for running the magento application.
And you have already configured it for handling the static content. It would be easy to let it handle the dynamic contant as well right ?