Linux Apps Tutorials - Herong's Tutorial Examples - v1.03, by Herong Yang
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 <html> <body> <p>Welcome to My Web Site</p> ... </body> </html>
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 http://192.168.1.100 <html> <body> <p>Welcome to My Web Site</p> </body> </html>
Cool. I am able to publish an HTML document as the "Home Page" on the Apache HTTP Server, "httpd".
Table of Contents
►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
"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