California Polytechnic State University
San Luis Obispo, California - Computer Science Department
Welcome

How to Make a Web Page

How to Make a Web Page

Every student with a hornet/falcon account can set up a personal web page on http://www.csc.calpoly.edu, the department's web server. To set up your web page you must create a web directory and give the web server program permission to access that directory.

Creating a web directory

On hornet and falcon your web directory is a directory in your home directory called www. To create it use the mkdir command.

08:24am hornet ~> cd
08:24am hornet ~> mkdir www

Now give the web server permission to access that directory. To do this create a special Access Control List that allows the web server to read files in your www directory.

08:24am hornet ~> setfacl -m user:wwwserve:--x,mask:--x ~
08:24am hornet ~> setfacl -m user:wwwserve:r-x,mask:r-x ~/www

Now What?

What you put in your home directory is really up to you. A good place to start might be a default page. With your favorite text editor create the file index.html in your www directory. Here is a sample file:

<!-- Sample index.html file -->
<html>
<head>
	<title> My Web Page </title>
</head>
<body>
	<center> Hello World </center>
</body>
</html>

NOTE: Be sure to give the web server permission to read it.

08:24am hornet ~> chmod 644 index.html

You can now view your web page. The url is http://www.csc.calpoly.edu/~username (replace username with your hornet login name)