Disabling Servers Question

4 posts / 0 new
Last post
#1 Fri, 05/20/2011 - 10:03
oranjbox

Disabling Servers Question

Is there a way to display (outside of virtualmin) the reason for a users website being disabled on my disabled webpage. Can I retrieve that information and insert it into a php page from the Virtualmin API?

Fri, 05/20/2011 - 10:39
andreychek

Howdy,

Well, whenever a site is disabled -- the DNS, website, and such are all disabled as well. So even if there were a page that displayed why it was disabled, the user wouldn't be able to see it since the DNS and website aren't working.

So, unfortunately, the answer there is no, there isn't a way to do that :-)

-Eric

Tue, 06/19/2012 - 02:42
oranjbox

Eric,

I've currently setup my virtualmin installation to keep DNS enabled so that disabled pages may display a custom page detailing that the page has been disabled. I would however like to display the reason from inside virtualmin as to why the page was disabled. Is there a way to access the API and extract the reason?

Wed, 06/20/2012 - 09:29
andreychek

Sorry, I don't believe there is a way to do that. It looks like you can enable or disable a domain using the API, but I don't see a way to obtain the reason it was disabled.

-Eric

Topic locked