Under Construction page

I'm wondering if Linode provides an "under construction" page that I can point my domain to in the DNS Manager. I could use this while working on setting up my website/server.

2 Replies

We do not provide an "under construction" page, but you do have a several options to accomplish this.

If you're using WordPress for your website there are a lot of free plugins that will allow you to display an "under construction" page. Here's one that I found on WordPress.org:

https://wordpress.org/plugins/under-construction-page/

If you're using Nginx, you can create a "maintenance page" by editing your Nginx server block with something like the following:

server {
    listen      80;
    server_name mysite.com;
    root    /var/www/mysite.com/;

    location / {
        if (-f $document_root/maintenance.html) {
            return 503;
       }
        ... # the rest of your config goes here
     }

    error_page 503 @maintenance;
    location @maintenance {
            rewrite ^(.*)$ /maintenance.html break;
    }
}

Whenever you want to display your "Under Construction" page, just create the file maintenance.html in the $document_root. If the file exists, Nginx will serve it with a 503 status code. If not the file does not exist, your site will load normally.

Another option is to just add "Under Construction" to your index.html file and then replace that file when you are done building your site.

Let us know if this helps.

Thanks so much for the info @Loni. That makes sense. Much appreciated!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct