Suspension of website

Kwalisites

New member
Joined
Jun 3, 2021
Messages
4
Hi,

Am not sure if this is in the right forum but here it goes.
It is possible to suspend a user/domain but that mains everything is not accessible.
Is there a way to just suspend 'the website' and leave mail running?
 
Are you an owner of a Directadmin License? if you are your in the right place. if not you should speak to your hosting provider.
Is there a way to just suspend 'the website' and leave mail running?
Generally speaking no. If the user is in default of payment the entire account is suspended. If the user only needs email he should be moved to an email only plan once he or she make the account current.
 
Last edited:
Yeah I understand. it's not of payment issues, it's just the type of service we'd like to offer.
So we'd like to take the website offline for a while (Plesk offers this kind of thing if that helps).
 
Yeah I understand. it's not of payment issues, it's just the type of service we'd like to offer.
So we'd like to take the website offline for a while (Plesk offers this kind of thing if that helps).
You could make the website return a 503 error with a custom HTTPD config (it's a menu option on the admin level)

Apache config:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^.*$ - [R=503,L]
ErrorDocument 503 "This website is currently unavailable, check back later"
<IfModule mod_headers.c>
Header Always Set Cache-Control "max-age=0, no-store"
Header Always Set Retry-After "60"
</IfModule>
</IfModule>

This way, the website is offline (as it returns a 503) but mail remains running (as the site is technicaly not suspended).
 
I did not know what to call it: suspension, pause, whatever. I just want to take the site offline temporarily.
Now, trying to think the consequences through of your solution (thanks by the way).
This will generate a 503 for any traffic going to the site, correct?
so, also for any malicious traffic?
With the site not being accessible like this, it means we also cannot maintain/update it, which is fine as long as it is not accesible for ANYONE,
 
I did not know what to call it: suspension, pause, whatever. I just want to take the site offline temporarily.
Now, trying to think the consequences through of your solution (thanks by the way).
This will generate a 503 for any traffic going to the site, correct?
so, also for any malicious traffic?
With the site not being accessible like this, it means we also cannot maintain/update it, which is fine as long as it is not accesible for ANYONE,
yes, you won't be able to maintain it trough a browser, it'd be giving 503's for every visitor

you could place it in a limit block, and only block (or only allow) certain ip's (but in the case you only block certain ip's, you want a 403, in case you only allow certain ip's, you might want this 503 though)
 
If the user want to do it, he can also do it himself easily with a .htaccess file.
If you want this for multiple sits I recommend the solution given by k1l0b1t.
 
Back
Top