The World Wide Web Directories in the UWM Computer Science Department --------------------------------------------------------------------- HOW TO USE THE PUBLIC WWW AREA 1) Create a directory for yourself in /pub/www/public. Please only create one directory at this level. 2) In your directory create an index.html file, this is your home page. 3) DO NOT create links to other parts of the file system for web browsers to follow. 4) Make sure that your directory is world executable (i.e. 755) and all files are world readable (i.e. 644). 5) After you do the above steps, you are done. 'Public Areas for Computer science' index should notice that you have setup a www directory immediatly. The index only adds an entry that matchs your login id. The URL for which others access your pages can be one of the following: http://www.cs.uwm.edu/~loginid ------------------------------------------------------------------------------ CGI Programing -------------- To do cgi programing, name the program with .cgi on the end and set the execute bit. Just like an .html file is a hypertext document. Same goes for .cgi. Anything named with a .cgi on the end is considered a cgi program. Cgi programs named with .cgi run as nobody, a non-priv user-id. These programs cannot write data back. CGI's That write data back ++++++++++++++++++++++++++ To do cgi programing that can write data back, name the program with .cgix on the end and set the execute bit. Just like an .html file is a hypertext document. Same goes for '.cgix'. Anything named with a .cgix on the end is considered a cgi program that can write data back. These programs run as your userid, and this permits you to write data back to your web directory or you main directory of your account. Anything named .cgix is considered a cgi program that runs as the user. there are specific requirements on what urls and where the program can be in order to run as the user. The url MUST be of the form http://www.cs.uwm.edu/~loginid/somedir/blah.cgix it cannot be http://www.cs.uwm.edu/public/loginid/somedir/blah.cgix It also must be one of the following directories: /pub/www/faculty /pub/www/public/ /pub/www/classes /pub/www/lab /pub/www/research The first directory it finds that contains a directory with the users loginid will be where the program executes. e.g. http://www.cs.uwm.edu/~someuser/test.cgix location of program /pub/www/public/someuser/test.cgix SHTML ----- Server parsed html is supported, but exec's are disabled due to security reasons. Simply name the page with .shtml on the end of it. PHP3 ---- ------------------------------------------------------------------------------ <---=== If you have any problems or questions email labstaff.---===> labstaff@cs.uwm.edu