home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / CONTRIB / HTTPD / HTTPD_AS.TAR / ascii / intro-to-server.txt < prev    next >
Encoding:
Text File  |  1994-10-11  |  6.1 KB  |  169 lines

  1. NCSA httpd
  2.  
  3. NCSA httpd is a HTTP/1.0 compatible server for making hypertext and other
  4. documents available to Web browsers. Please read this copyright notice. 
  5.  
  6. This code is in the public domain. Specifically, we give to the public domain all
  7. rights for future licensing of the source code, all resale rights, and all publishing
  8. rights. 
  9.  
  10. We ask, but do not require, that the following message be included in all derived
  11. works: 
  12.  
  13. Portions developed at the National Center for Supercomputing Applications at the
  14. University of Illinois at Urbana-Champaign. 
  15.  
  16. The current version is 1.3. If you are using an earlier version, the upgrade notes will
  17. be helpful. We also have an FAQ on NCSA httpd.
  18.  
  19.  
  20.  
  21. Why NCSA httpd?
  22.  
  23. Here is a list of the server's features. Follow the links to read about them and see
  24. demonstrations of their use. 
  25.  
  26.    Low Impact
  27.  
  28.       Designed to be a small, fast server. 
  29.  
  30.       Has a low impact on system resources, allowing it to serve documents
  31.       to a large number of users simultaneously with little slowdown. With
  32.       the amount of traffic www.ncsa.uiuc.edu gets, this was
  33.       required. 
  34.  
  35.       Runs standalone, for faster performance, or under inetd. 
  36.  
  37.    Compatibility
  38.  
  39.    NCSA httpd speaks both the HTTP/1.0 and HTTP/0.9 protocols, and will
  40.    serve documents to World Wide Web browsers speaking either dialect. In
  41.    addition, NCSA httpd allows easy serving of multimedia documents through
  42.    both protocols. 
  43.  
  44.    Unified Directory Structure
  45.  
  46.    NCSA httpd allows you to serve your documents from a single directory,
  47.    which can be any physical directory. The World Wide Web browsers never
  48.    see the name of this physical directory, allowing you to move your documents
  49.    into different directories (or to a larger disk) without rewriting your HTML
  50.    documents and telling everyone who may be using your server about the
  51.    move. 
  52.  
  53.    In addition, if heavily publicized documents move from your server to a
  54.    different one, NCSA httpd allows you to easily point the users to the new
  55.    location of the documents. With some browsers, the user will not even notice
  56.    the change. 
  57.  
  58.    Directory Indexing
  59.  
  60.    NCSA httpd allows you to create HTML catalogs of your directories, in order
  61.    to tell users what's in them. 
  62.  
  63.    For instance, on hoohoo, I have a directory containing some neat pictures, and
  64.    I've written a small index for it.
  65.  
  66.    I have another directory whose contents are constantly changing. I don't really
  67.    want to write and maintain an index. In this case, httpd will generate an index
  68.    of the directory for me when a user requests the directory. I can configure
  69.    httpd to ignore certain files, to give a certain icon for certain files, to place a
  70.    short description after file names, and include either an HTML or plaintext
  71.    README which tells people what is in the directory.
  72.  
  73.    User Supported Directories
  74.  
  75.    NCSA httpd allows you to let users make their own directories available for
  76.    HTTP access, without your having to create links to them. Of course, you can
  77.    limit what the users can do from their directories for security reasons. 
  78.  
  79.    Server Scripts
  80.  
  81.    NCSA httpd allows you to write server scripts, which are executable
  82.    programs which the server runs to generate documents on the fly. They are
  83.    easy to write and can be written in your favorite language, whether it be C,
  84.    PERL, or even the Bourne shell. 
  85.  
  86.    These scripts can be used for a number of purposes. 
  87.  
  88.       HTML forms 
  89.  
  90.       If you are using a browser which supports HTML forms, like Mosaic
  91.       2.0 for X, you can create scripts to handle form requests. 
  92.  
  93.       For example, let's order a sub. 
  94.  
  95.       If you are familiar with the PH system, you can look a person up in the
  96.       phone book. Try looking up Rob McCool by name. 
  97.  
  98.       Simple HTML indexes 
  99.  
  100.       Most browsers support the HTML <ISINDEX> flag. You can use
  101.       server scripts to respond to them. 
  102.  
  103.       For example, what is hoohoo's load average right now? 
  104.  
  105.       Let's try a simple finger gateway. Try looking for robm@void, you
  106.       may find a link.
  107.  
  108.       How about looking something up in archie? 
  109.  
  110.       Image mapping 
  111.  
  112.       If you are using a browser which supports it, you've probably noticed
  113.       that image mapping is a fun feature. NCSA httpd lets you create your
  114.       own maps. 
  115.  
  116.    Security
  117.  
  118.    NCSA httpd allows you to control who can access different document trees on
  119.    your server. It also allows you to define which server functions are carried out
  120.    in different document trees. 
  121.  
  122.    Note that the following methods of access limitation can work independently,
  123.    or be combined. 
  124.  
  125.       Host Filtering 
  126.  
  127.       Host filtering is used to limit document trees to certain machines,
  128.       most likely local machines or those directly involved in a project. 
  129.  
  130.       For example, I have some documents which are NCSA only. If you are
  131.       not from a machine in ncsa.uiuc.edu, you can't access them. 
  132.  
  133.       I have another directory that I don't want NCSA people to read, since
  134.       they can access it elsewhere. 
  135.  
  136.       User Authentication 
  137.  
  138.       If your browsers are using a browser that supports user authentication,
  139.       like Mosaic 2.0 for X, you can have browsers authenticate themselves
  140.       with a user name and a password before they are able to access
  141.       protected documents. 
  142.  
  143.       For an example, let's create three users. 
  144.          robm password pinhead 
  145.          marca password conehead 
  146.          ebina password bonehead 
  147.  
  148.       I have protected this directory so that only robm can access it. 
  149.  
  150.       I have protected this directory so that only people in the Mosaic X
  151.       developers group can access it. That means ebina and marca. 
  152.  
  153.       I have protected this directory so that only robm can access it, and
  154.       only from void.ncsa.uiuc.edu. 
  155.  
  156.    Server Side Includes
  157.  
  158.    NCSA httpd allows you to include the output of commands or other files in
  159.    your HTML documents. 
  160.  
  161.    For instance, the current date is . 
  162.  
  163.    At the end of each document, I'd like to include my signature but don't want
  164.    to have to change every document I wrote when my home document moves.
  165.    So, I can use a server include tag to include it, like this: 
  166.  
  167.  
  168.  
  169.