Web Pages and CGI on the UG Lab Web Server

Anyone with an account on the CS Department Undergraduate Computing Laboratory systems may publish a home page on the World Wide Web. To do this, simply create a subdirectory public_html of your home directory, and make sure that both this directory and your home directory are "world readable". Then, create a file called index.html or Welcome.html in this directory. This file will automatically be presented by the server at the URL:

http://www.ug.cs.sunysb.edu/~yourname

Please keep in mind that anything you place under the public_html directory is potentially accessible to anyone on the Internet.

To set up a CGI script, simply put the script anywhere in your public_html directory. The script need not go in a special "cgi-bin" directory, but note that it must have a name that ends in ".cgi" and have world execute permission, otherwise the server will refuse to run it.

The Web server machine is www.ug.cs.sunysb.edu, which is not available for general logins. The server access and error logs can be accessed from public.ug.cs.sunysb.edu, in the directory /wwwlogs. If accessing one of your CGI scripts gives you a "This server encountered an internal error..." message, please don't mail me. Instead, go look at the error logs to get a hint as to why find out why your script bombed out, and then fix the bugs in your script.

webmaster@ug.cs.sunysb.edu