DA Maintenance Mode

adam2020

Verified User
Joined
Mar 3, 2020
Messages
19
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
 

kristian

Verified User
Joined
Nov 4, 2005
Messages
179
Location
Norway
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
 

adam2020

Verified User
Joined
Mar 3, 2020
Messages
19
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.
 
Top