DA Maintenance Mode

adam2020

Verified User
Joined
Mar 3, 2020
Messages
20
Hi All,

Had a scroll through the forum and couldn't find anything relevant.

Q. Does Direct Admin have a maintenance mode for users websites - a like Plesk and cPanel?

Thanks
 
I'm not aware of anything, but you can insert a custom httpd configuration for the domain. We use this method as part of a user migration script, for example:

Apache config:
# Maintenance mode
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^.*$ - [R=503,L]
ErrorDocument 503 "This site is currently under maintenance by the hosting provider. Please try again in a few minutes."
<IfModule mod_headers.c>
Header Always Set Cache-Control "max-age=0, no-store"
Header Always Set Retry-After "60"
</IfModule>
</IfModule>
# Maintenance mode
 
I'm not aware of anything, but you can insert a custom httpd configuration for the domain. We use this method as part of a user migration script, for example:

Apache config:
# Maintenance mode
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^.*$ - [R=503,L]
ErrorDocument 503 "This site is currently under maintenance by the hosting provider. Please try again in a few minutes."
<IfModule mod_headers.c>
Header Always Set Cache-Control "max-age=0, no-store"
Header Always Set Retry-After "60"
</IfModule>
</IfModule>
# Maintenance mode
Thanks Kristin, I'll give that a go.
 
Nice idea, I've voted it up. But I never saw an maintenance mode in cP...
 
Must be something custom. I've never seen a maintenance mode for either cP or Plesk.
Might be nice when doing backups or something.
 
Back
Top