Changes

Jump to: navigation, search

OPS335 Lab 5

537 bytes added, 06:42, 30 March 2016
no edit summary
#Start the httpd service, and enable this service to start automatically upon system startup.
#Make certain to configure your firewall to allow access to the httpd service (i.e. the Apache serves HTTP traffic which goes over TCP port '''80''').
#Open a web-browser in your '''host''' machine and enter the following URL: '''vm4.youruserid.org'''. <br>If you setup your Apache webserver correctly, you should be able to view the Apache Test page.#Delete the file '''/etc/httpd/conf.d/welcome.conf''' to get rid of remove the default pagewebpage.#We're Although we will not going to be exploring webservers in depth, we will have you create a simple webpage for testing purposes, then later setup a lot of time to study various Apache options so we'll tell you what you're looking web resource for but you have to find it yourselfwebmail.#The term'''DocumentRoot''' specifies where the Apache webserver will look search for documents to serve. Create the file '''index.html''' in your '''DocumentRoot ''' directory with the following contents (replace the date with the current one):
<pre>Hello, this is a web page on vm4.yourid.org and the current time is Mar 28 22:16:27 EDT 2016!</pre>
<ol><li value="6">If you refresh the your web-browser page in Firefox - , you should see the contents of your ''index.html'' document. If you like - wish, you can specify the filename index.html in the address , but there's no need it is not necessary, since itthe file index.html is automatically loaded by default when the URL refers to that directory containing that file.</li></ol>  It is considered to be a "best practice" to create the index.html files for newly-created subdirectories within the DocumentRoot (or user's public_html directory) to force a display of a defaultwebpage, instead of viewing the directories "index" listing of files (from "curious eyes"): that is why the name of the file is called "index.html". </liol><livalue="7">It may seem obvious - but notice that the time doesn't change as you refresh the page.</li></ol>
=== Creating a PHP File ===
13,420
edits

Navigation menu