Submitted by yngens on Fri, 08/16/2013 - 05:16
The option for changing the "Website Disabled" message to custom text only works for the virtual servers associated with Default Settings template. However, if one creates a custom template with "Default" selected for "Apache?" option, then the two options for using variables shown in https://xxx.xxx.xxx.xx:10000/help.cgi/virtual-server/disabled_web in Server Templates > Default Settings > Apache Website to create custom text for disabled message or redirect disabled websites to custom URL are useless.
Status:
Closed (fixed)
Comments
Submitted by yngens on Fri, 08/16/2013 - 05:21 Comment #1
By the way, there is another issue related to custom modifications for disabled pages. When using ${DISABLED_TIME} variable, it outputs something like 1376647362, instead of human readable date and time. I believe this is Unix time. PRobably I was supposed to file separate issue for this, but just didn't want planting lot's of issues around.
Submitted by JamieCameron on Fri, 08/16/2013 - 18:37 Comment #2
Do you mean that you can't use the fields for setting a custom disabled template (because they are greyed out), or that the template you enter doesn't get used?
The problem with DISABLED_TIME is clearly a bug though, and will be fixed in the next Virtualmin release.
Submitted by yngens on Sun, 08/18/2013 - 07:58 Comment #3
It is available there and one can set new settings using it, however It doesn't get used at all if a virtual server is associated with any custom template. This settings take effect only if a virtual server is associated with the default template.
Submitted by JamieCameron on Sun, 08/18/2013 - 17:35 Comment #4
I just tested this, and it worked fine for me.
In your custom template on the "Apache website" page, what is the "Directives and settings for new websites" set to?
Submitted by yngens on Mon, 08/19/2013 - 00:57 Comment #5
It is "From default settings".
The "Virtualmin default" is selected for "Disabled website HTML".
And Default Settings template has the following code for Disabled website HTML > Enter below.. :
<h1>Website Disabled</h1>
<p>This website (http://${DOM}) has been disabled at ${DISABLED_TIME} for ${DISABLED_WHY}.</p>
Submitted by JamieCameron on Mon, 08/19/2013 - 19:36 Comment #6
I think for "Disabled website HTML" you need to select "From default settings" instead. This will cause the HTML from the "Default settings" template to be used.
Submitted by yngens on Tue, 08/20/2013 - 12:42 Comment #7
My bad - Virtualmin default was chosen instead. Please consider this closed. Thanks!