next up previous contents index
Next: CGI Scripting Up: Web Server Previous: Setting up Apache   Contents   Index

Simple HTML

Once the server is running you can immediately start to see web pages in the /var/www/html/ directory. If you want to you can create a simple HTML file and test out your web server. This is what the code for a simple html called simple.html could look like:

<title>Simple HTML Title</title>
<body bgcolor=white>
<h1>My Simple HTML Page</h1>
What do you think?

Put this file in your /var/www/html/ directory then using a browser open the URL http://localhost/simple.html and see this html file. If you are not seeing this HTML it is possible that the permissions are not set right. While in the /var/www/html directory type the command:

bash# chmod 644 simple.html

This will change the rights of the HTML file so that it can be seen on the Internet.

Joseph Colton 2002-09-24