Publish Home Page index.html

This section provides a tutorial example on how to publish a simple 'Home Page' on Apache HTTP Server 'httpd' on Linux systems.

With Apache HTTP Server, httpd, running and accessible remotely, now I can publish my "Home Page" on the server.

1. Create an HTML document called index.html:

herong$ vi index.html

<p>Welcome to My Web Site</p>

2. Copy the HTML document to the server document directory, /var/www/html/:

herong$ sudo cp index.html /var/www/html/

3. Give "read" access to "apache" as "other" users:

herong$ sudo chmod 444 /var/www/html/index.html

herong$ ls -l /var/www/html/test.html
-r--r--r--. 1 root root 60 Apr 1 2022 /var/www/html/index.html

4. View the "Home Page" remotely on another computer:

herong$ curl

<p>Welcome to My Web Site</p>

Cool. I am able to publish an HTML document as the "Home Page" on the Apache HTTP Server, "httpd".

Table of Contents

 About This Book

 Introduction to Linux Systems

 Process Management

 Files and Directories

Running Apache HTTP Server (httpd) on Linux Systems

 What Is Apache HTTP Server "httpd"

 Install Apache HTTP Server "httpd"

 Enable Remote Access to "httpd" Service

Publish Home Page index.html

 "apachectl status/start/stop" Commands

 Verify Apache HTTP Server "httpd" Environment

 Requirements for Supporting HTTPS on Apache

 Web Server Certificate and Required Fields

 Apache Configuration for HTTPS Protocol

 Common Issues with Apache HTTPS Support

 Listen to Non-Standard Ports with Apache

 Running Apache Tomcat on Linux Systems

 Running PHP Scripts on Linux Systems

 Running MySQL Database Server on Linux Systems

 Running Python Scripts on Linux Systems

 Conda - Environment and Package Manager

 GCC - C/C++ Compiler

 OpenJDK - Open-Source JDK

 Graphics Environments on Linux

 SquirrelMail - Webmail in PHP

 Tools and Utilities


 Full Version in PDF/EPUB