next up previous contents
Next: Running Programs Up: Apache Previous: Simple Configuration   Contents

A Simple Web Site

Websites are trivial. Remember that the primary function of a web server is to deliver static files. If we do not specify a particular file from a directory the web server will default to a file called ``index.html''. So we create a this file:
<HTML>
 <HEAD>
  <TITLE>
   Hello, World
  </TITLE>
 </HEAD>
 <BODY>
  Hello, World
 </BODY>
</HTML>
Apache keeps raw web pages in the html directory so we move this file there:
cp index.html /var/www/html
and then we ask for the code by going to a web browser (or using telnet) at the url:
  http://127.0.0.1/index.html
or, since this is the default page we can just say:
  http://127.0.0.1/

Once we have set up the first default page we can use HTML to construct pages as high, wide, and deep at we want. HTML programming is not covered here.


root 2004-02-18