Month: September 2017

Red Hat Enterprise Linux 7 – Banner

While logging into a Red Hat Enterprise Linux 7 server by means of SSH you may be addressed by a login banner. You may use the steps below to create the login banner.

  1. Edit the /etc/ssh/sshd_config file (i.e. Banner /etc/banner)
  2. Create the /etc/banner file
  3. Restart the SSH service (i.e. systemctl restart sshd)

Apache – Simple Maintenance Page

You may use the following sample maintenance page for your website, when necessary. I did not create it but I did find it very helpful and the link to the HTML code may be found here.

<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>

<article>
<h1>We&rsquo;ll be back soon!</h1>
<div>
<p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. If you need to you can always <a href=”mailto:#”>contact us</a>, otherwise we&rsquo;ll be back online shortly!</p>
<p>&mdash; The Team</p>
</div>
</article>