Focal Point
[SOLVED] Display maintenance message for all portals

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1677016396

June 10, 2020, 01:08 PM
EJ
[SOLVED] Display maintenance message for all portals
Is there a way to display a maintenance message for all portals when we have to do maintenance on our database instead of our portals showing errors because the database cannot connect? Is this something that would be done on the webserver side? If so, where or is there documentation somewhere?

This message has been edited. Last edited by: EJ,


WebFocus 8.2.03
June 10, 2020, 01:36 PM
BabakNYC
If you have access to the WebFOCUS admin console, you can click BI Portal and set these:

Sign-in Message (IBI_SIGNIN_MESSAGE)

Specifies a custom message that displays in the Messages dialog box when a user signs in. You can enter plain text or HTML tags for text, links, and images, into this field. If you leave this field blank, which is the default value, the Messages dialog box does not display.

Customized Sign-in Page (IBI_CUSTOMIZED_SIGNIN_PAGE)

Enables the display of a custom sign-in page for users. The default value is False.


WebFOCUS 8206, Unix, Windows
June 10, 2020, 01:54 PM
EJ
Thanks for the reply. We have single sign-on implemented though, so the user never "signs on".. worried about when they go to a portal url and the data supporting the portal is unavailable and they get the error messages all over the screen. How do we prevent them from seeing error messages once they go to the portal URL?


WebFocus 8.2.03
June 10, 2020, 04:45 PM
Waz
The solution we have is done at the Web Server.

The web server is Apache httpd, the rewrite conditions are:

# BEGIN Under Mainenance Activation Code
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/under_maintenance.html -f
RewriteCond %{DOCUMENT_ROOT}/under_maintenance.enable -f
RewriteRule ^.*$ /under_maintenance.html [R=503,L]
# END

Basically if under_maintenance.enable exists in the document root, then the under maintenance page is shown for all requests.
All we need to do is rename a file from under_maintenance.disable to under_maintenance.enable


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 11, 2020, 11:18 AM
FP Mod Chuck
Good One


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
June 17, 2020, 07:58 AM
EJ
THanks! I will try this


WebFocus 8.2.03