Difference: WebGuide (9 vs. 10)

Revision 102020-06-05 - WilliamSeligman

Line: 1 to 1
 
META TOPICPARENT name="Computing"

Nevis Web Setup Guide

Line: 30 to 30
 cp ~seligman/WWW/sample.html .
Changed:
<
<
Edit these files with your favorite text editor. Emacs has a special HTML mode that is invoked automatically when you edit any file that
>
>
Edit these files with your favorite text editor. Emacs has a special HTML mode that is invoked automatically when you edit any file that
 ends in ".html". If you type C-h m while editing an HTML file, you'll see a description of the special features of this mode. (On the Mac, I used the free version of BBedit.)

Viewing your web pages

Line: 39 to 39
 HTML files. For example, after you've copied template.html to your area, you can see how it looks by telling your browser to look at the URL:
Changed:
<
<
http://www.nevis.columbia.edu/~jsmith/template.html
>
>
https://www.nevis.columbia.edu/~jsmith/template.html
 

assuming that your login ID is jsmith. Note that you do not type in

Line: 62 to 62
 If you do so, then you can omit the file name when you tell other people the URL of your home page:
Changed:
<
<
http://www.nevis.columbia.edu/~jsmith/
>
>
https://www.nevis.columbia.edu/~jsmith/
 

If you're having problems creating or changing your web pages, check out the

Line: 85 to 85
 Note that there's no policy or requirement that your page be in the same style as the Nevis web site. Feel free to define your own styles, write your own server-side includes, or include your own Javascripts.

Other examples

Changed:
<
<
The files template.html and sample.html are very basic (and somewhat facetious) examples of how to set up a home page. For other examples, look at the home pages of some the Nevis faculty, such as Bill Zajc. You can copy these files into your own directory with the commands like:
>
>
The files template.html and sample.html are very basic (and somewhat facetious) examples of how to set up a home page. For other examples, look at the home pages of some the Nevis faculty, such as Bill Zajc. You can copy these files into your own directory with the commands like:
 
cp ~zajc/WWW/index.html ~/WWW/zajc.html
Line: 107 to 107
 

Let the sysadmin know

After you've set up your web site, be sure to tell the
Changed:
<
<
webmaster to update the Nevis Directory with your URL.
>
>
webmaster to update the Nevis Directory with your URL.
 

Obfuscate e-mail addresses

It's a bad idea to include your e-mail address directly as part of your web site.
Line: 124 to 124
 Instead, use this:
Send e-mail to
Changed:
<
<
John Smith
>
>
John Smith
  On your web page, this will look like: "Send e-mail to
Changed:
<
<
John Smith."
>
>
John Smith."
 If you click on this link, it will display a warning page stating that the e-mail address is not to be used for advertising. Also, your e-mail address is less likely to be picked up by an automated program.

man pages

Changed:
<
<
Any Nevis man page can be displayed via the web browser. For example, to display the man page on the ls command, use:
>
>
Any Nevis man page can be displayed via the web browser. For example, to display the man page on the ls command, use:
 
Changed:
<
<
ls
>
>
ls
  This can be handy if you're writing a set of instructions to your students on how to do something in UNIX. Note that this only works for man pages that are available on the web server.
Line: 185 to 185
 -rw-r--r-- 1 jsmith collab 5749 May 30 17:35 stuff.html
Changed:
<
<
The URL for stuff.html would be http://www.nevis.columbia.edu/~jsmith/descript/stuff.html.
>
>
The URL for stuff.html would be https://www.nevis.columbia.edu/~jsmith/descript/stuff.html.
 In this situation, although the Web browser can display index.html and even display the contents of folder "descript", it will return an error when trying to access descript/stuff.html. This problem can be fixed as follows:
Line: 213 to 213
  The trick is to set up a .htaccess file in the directory that you wish to be protected and a .htpasswd file in some other directory. You can find instructions here.
Changed:
<
<
It's possible that the htpasswd command is not available on your machine. If not, let me know and I'll install it. (It's normally not part of a Linux installation unless the machine is going to host a web server.)
>
>
It's possible that the htpasswd command is not available on your machine. If not, let me know and I'll install it. (It's normally not part of a Linux installation unless the machine is going to host a web server.)
  Also, as you create your .htaccess file, bear in mind that your home directory is not in /home; it's your home directory as seen by the Linux cluster. Use the command:
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback