diff options
author | Kevin Cupp <kevin.cupp@gmail.com> | 2012-02-05 20:14:32 +0100 |
---|---|---|
committer | Kevin Cupp <kevin.cupp@gmail.com> | 2012-02-05 20:14:32 +0100 |
commit | d63e40138e675df40f3a17e04972e82e7a748307 (patch) | |
tree | 02ad420bf5ec25e6e3379e1f821e4e029b00f828 /index.php | |
parent | b211adee89f5fd2192051e9c0826146bd150f469 (diff) |
Adding in a few 503 status codes for common errors in response to this ExpressionEngine bug about errors getting cached by reverse proxies who cache 200 responses: http://expressionengine.com/bug_tracker/bug/17420
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -218,6 +218,7 @@ if (defined('ENVIRONMENT')) { if ( ! is_dir(BASEPATH.$application_folder.'/')) { + header('HTTP/1.1 503 Service Unavailable.', TRUE, '503'); exit('Your application folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF); } @@ -233,6 +234,7 @@ if (defined('ENVIRONMENT')) { if ( ! is_dir(APPPATH.'views/')) { + header('HTTP/1.1 503 Service Unavailable.', TRUE, '503'); exit('Your view folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF); } |