I install directadmin
with CB2
+ Apache
+ MariaDB 10.1.31
+ PHP 5.6.34
.
When I upload OpenCart and enable maintenance mode, Apache shows the 503 error page instead of maintenance.tpl
.
I checked the catalog/controller/common/maintenance.php
and found the following code:
if ($this->request->server['SERVER_PROTOCOL'] == 'HTTP/1.1') {
$this->response->addHeader('HTTP/1.1 503 Service Unavailable');
} else {
$this->response->addHeader('HTTP/1.0 503 Service Unavailable');
}
$this->response->addHeader('Retry-After: 3600');
I think the problem is that Apache does not handle the 503 Header correctly. When I change the web server to LiteSpeed, it is ok.
To check you can compare these two versions of the site. Both of them have the maintenance mode enabled, but:
The first is OK - http://takjens.com/
The second is not - http://server3.lammer.ir/
Please let me know how to fix this problem.