Product SiteDocumentation Site

6.2. Create Website Documents

We need to create a page for Apache to serve. On CentOS 7.5, the default Apache document root is /var/www/html, so we’ll create an index file there. For the moment, we will simplify things by serving a static site and manually synchronizing the data between the two nodes, so run this command on both nodes:
# cat <<-END >/var/www/html/index.html
 <body>My Test Site - $(hostname)</body>