Question: Part I Working with Apache Web Server Create a file called index.html in the directory assigned to DocumentRoot in the main Apache configuration file. The
Part I Working with Apache Web Server
Create a file called index.html in the directory assigned to DocumentRoot in the main Apache configuration file. The file should have the words My Apache Web Server inside. {Screen capture}
Start the Apache web server, and set it to start up automatically at boot time. Check that it is available from a web browser on your local host. (You should see the words My Apache Web Server displayed if it is working properly.) {Screen capture}
Use the netstat command to see which ports the httpd server is listening on. {Enter the command used}
Try to connect to your Apache web server from a web browser that is outside the local system. If it fails, correct any problems you encounter by investigating the firewall, SELinux, and other security features. If you don't have DNS set up yet, use the IP address of the server to view your Apache server from a remote web browser, such as http://192.168.0.1. {Screen capture}
Using the openssl or similar command, create your own private RSA key and self-signed SSL certificate. {Screen capture}
Configure your Apache web server to use your key and self-signed certificate to serve secure (HTTPS) content. {Screen capture}
Use a web browser to create an HTTPS connection to your web server and view the contents of the certificate you created. From the system running the Apache server, type https://localhost in the browser's location box. {Screen capture}
Create a file named /etc/httpd/conf.d/marine.org.conf, which turns on name-based virtual hosting and creates a virtual host that does these things: {Screen capture}
Listens on port 80 on all interfaces
Has a server administrator joe@marine.org
Has a server name of joe.marine.org
Has a DocumentRoot of /var/www/html/marine.org
Has a DirectoryIndex that includes at least index.html
Create an index.html file in DocumentRoot that contains the words Welcome to the House of Joe Marine inside. {Screen capture}
Add the text joe.marine.org to the end of the localhost entry in your /etc/hosts file on the machine that is running the web server. Then type http://joe.marine.org into the location box of your web browser. You should see Welcome to the House of Joe Marine when the page is displayed. {Screen capture}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
