Download Maintenance Page Html

2 views
Skip to first unread message

Lynne Pruskowski

unread,
Jul 23, 2024, 10:22:42 PM7/23/24
to sunmascrutmi

But I noticed it would be served with a 200 status code, and it can cause confusion to search engines. I think the best practice would be returning a 503 status code. On google I find several relevant pages about it, like this. However, they use if to make the redirect and according to nginx documentation it isn't safe to use ifs.

I believe we can create a maintenance page on AEM such as /content/maintenance.html including content and styles and configure the dispatcher to serve the content from the temp path until the actual deployment is done.

download maintenance page html


Downloadhttps://shoxet.com/2zIxSb



The best and ideal way to have the custom error handler if you want to have have dynamicity, means which validates if any service is down or during maintenance is through following below documentation

You can make a switch to enable/disable it via a custom page/page property, where business/users can change it and the same property value you can use while writing business logic for error handling use cases.

We are using something like this for 404s, but we need to be able to manually switch the maintenance page on or off, e.g. if one of our sites dependent systems is down, or during an upgrade of one of the systems.

If we did it via AEM, I would use a java servlet filter to do the redirect for html documents based on a setting editable in Author instance. However, this will add a bit of latency to every page, and may or may not affect caching.

I am trying to create an irule to host a maintenance page. The problem is the content is not displayed in the center and I if I try to add images, iRule is not accepting it and giving me error: Below is the irule

Doing a request to the Virtual Server, you can answer with a single response. You can avoid the query to the logo if you integrate the image to the html content. You have to replace the img tag by following : ![Embedded Image](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA...)

Subscribe to ECS events and use lambda to replace the Load Balancer target group when the service is down (or assign a fallback one the highest priority). This approach has quite a lot of moving pieces and I'm afraid it may fail eventually (e.g. fail to remove the maintenance page target group automatically when the service is up again).

Sometimes you are in the need of disabling a website; in this case, Hugo should generate a different index.html and do not generate any other page. The content of public/ should only be the landing page and its dependencies.

You could set up different configs, for example having one for the landing page scenario. In this config, you might want to configure disableKinds to disable all except the home kind (full list of disable-able Kinds in the same docs page as above).

1) Navigate to AppExpert>Responder>Responder>Actions. Create a Responder Action by clicking the Add button with following details:
a) Name: Test_Outage_Action
b) Type: Respond with HTML page

I normally have a separate website that is normally turned off with a static html page in IIS. Then I turn on that site during longer deployment or if I run into problems...never happens of course *cough* :)

For now you may want to just disable the maintenance page logic by setting use_maintenance: false in /etc/ood/config/ood_portal.yml and then re-running /opt/ood/ood-portal-generator/sbin/update_ood_portal

Start an interactive app (in my case a Jupyterlab server) and wait until the session expires on its own. You will start getting some errors in the jupyter notebook. I you open Ondemand again you will get the maintenance page.

Can you remove the maintenance logic with use_maintenance: false in ood_portal.yml and see if the issue goes away? I am curious if you might hit some other issue that the maintenance rewrite is masking.

While it is usually best to attempt to avoid downtime for your production services, sometimes downtime is unavoidable (or at least not worth the effort to avoid). I recently had a Kubernetes-based project that called for a maintenance period, and this is the solution I came up with. The two key attributes I wanted to achieve were:

I StackOverflow copy/pasted my way to the following default.conf nginx configuration which will take all requests (except for pngjpgjpegcss filetypes) and route them to the maintenance page located at /usr/share/nginx/html/maintenance/maintenance.html, returning the proper 503 Service Unavailable HTML code:

To turn on maintenance mode, I apply these resources to the cluster and to turn it off, I reapply the previous Ingress definition. The ConfigMap/Deployment/Service could be deleted, or the Deployment scaled to zero replicas if it will be used again in the future!

Here is the quick way to implement Maintenance page in SharePoint, during scheduled down times/upgrade/service pack patching: Create a new app_offline.htm file in IIS Root folder of your SharePoint site. Place some descriptive text/images to the file, Make sure the file size is at least 512 bytes (otherwise, you will get 404 page not found error!). That's all!

As long as this file exists in the root, ASP.NET shuts down the site, stops processing any requests. So, After the maintenance activity, Just delete the app_offline.htm file to end up the maintenance mode.

Configure maintenance page for JIRA, Confluence, etc at proxy level during planned releases. You want to show the custom HTML page to users during release and at the same time allow admins/QA to access applications and don't break all existing application links.

Trying to add this to my Maintenance Page - but not sure where and how as its not showing (does a smartphone use the same maintenance page or is a completely different one as how do I test the page out if I remove my IP from the list.. to see the page work from my desktop)

Hello all,
I am new to ServiceNow, I am trying to find out is there a approach or a feature available in ServiceNow - when there is a alert received into ServiceNow that our Website is down, can it be able to display a maintenance page, so that when a customer trying to access our Website they see a maintenance page if our site is down?.

Thanks in advance,

Regards,
RTG.

A slight bit confusing on your post because you have a "website" and then you have "ServiceNow"...so you want when your website is reported to be "down"...that ServiceNow somehow host or post a "under maintenance" alert on that very same website? I don't think this is possible and would really depend on your website team who runs that website to get the incident...and then have some sort of SOP (standard operations procedures/policy) on an "alert" type page for that website.

Thank you for your kind reply Allen,

yes, you are right,
Actually I configured Event management in ServiceNow in a way that if our company website is down at particular location, In ServiceNow a ticket will be created, and then i was wondering is there a way that ServiceNow (Automatically) can Access to our Website and display a maintenance page or at least can it restart our website - Like may be using Workflows or some other feature in ServiceNow can do?

Thank you,
RTG

Perhaps someone else may know of something, but I really don't think there's an easy way for that...heh. The only thing I'm thinking is like you save some sort of alternate index.html file in your instance for that website...that has custom code on it which basically says it's under maintenance and you somehow communicate that back to your hosting site and replace the current index file with that, but that's like a FARRRRRR stretch of the imagination...

We will start with a simple technique to show a maintenance page. To redirect all users to a simple maintenance.html page place this snippet in the .htaccess file. Put both these files in the same folder.

Option 1 is useful only if the maintenance page is a simple page with basic styles. But in case if we need a bit more control over the maintenance page including usage of custom style sheets and images etc., it would be nice to place those in a separate folder, instead of mixing with our actual assets. The below code in the .htaccess file will allow us to do that.

Here all the requests will be redirected to the /maintenance/index.html. We may place all the assets to use in the maintenance page in this folder, like the style-sheets, images etc. This will guarantee that all the code related to the maintenance page is placed in a separate folder. Obviously the .htacces file needs to be placed in the parent or root folder where we place the maintenance folder. In addition to this, if you need access to the main asset files like the images and style-sheets, we may use

Both the above options will redirect all the requests to the maintenance page. But our aim is to test the upgrades and modifications on the live environment while all the visitors are redirected to the maintenance page. This is implemented through IP restrictions.

Here all the requests, except the those from the specified IP address will be redirected to the /maintenance/index.html. If we replace the above IP address with yours, we will be able to test the updates on the live environment.

To access this page, log into the secure provider portal, click User Administration and select the User Maintenance button from the main menu on the left side. This will bring you to the User Maintenance page.


We will add the line If you have any questions, contact us: 8-800-555-0100 to display the phone number. After the change, the above fragment in the file maintenance.html will look as follows:

Then, with that code in place, your server is going to respond with the file, maintenance.html, if it exists. You can either delete the ErrorDocument directive or create a maintenance.html file. Here is an example for a very basic maintenance page:

760c119bf3
Reply all
Reply to author
Forward
0 new messages