_ TWF  _ Code Chap 32

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
HOME | BACK | NEXT | MENU | SEARCH | ORDER | COMMENT | HELPINFO -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

32code01.pl


#                     H T T P D . C O N F

# This is the main server configuration file. It is best to

# leave the directives in this file in the order they are in, or

# things may not go the way you'd like. 

#

# Do NOT simply read the instructions in here without understanding

# what they do; if you are unsure, consult the online docs. You have # been warned!!!

#

# Rob McCool (comments, questions to httpd@ncsa.uiuc.edu)



# ServerType is either inetd, or standalone.



ServerType standalone



# If you are running from inetd, go to "ServerAdmin".

# Port: The port the standalone listens to. For ports < 1023, you 

# will need httpd to be run as root initially.



Port 80



# If you wish httpd to run as a different user or group, you must 

# run httpd as root initially and it will switch.



# User/Group: The name (or #number) of the user/group to 

# run httpd as.



User www

Group httpd



# ServerAdmin: Your address, where problems with the server should 

# be e-mailed.



ServerAdmin www@www.outer.net





# ServerRoot: The directory the server's config, error, and log 

# files are kept in



ServerRoot /usr/local/www/httpd-1.3



# ErrorLog: The location of the error log file. If this does not 

# start with /, ServerRoot is prepended to it.



ErrorLog logs/error_log



# TransferLog: The location of the transfer log file. If this does 

# not start with /, ServerRoot is prepended to it.



TransferLog logs/access_log



# PidFile: The file the server should log its pid to



PidFile logs/httpd.pid



# ServerName allows you to set a host name which is sent back to 

# clients.



ServerName www.outer.net



TimeOut 60

IdentityCheck off




32code02.pl


# With this document, you define the name space that users see on 

# your http server.

#

# See the tutorials at http://hoohoo.ncsa.uiuc.edu/docs/tutorials/ 

# for more information.

#



# DocumentRoot: The directory from which you will serve your

# documents. By default, all requests are taken from this directory, 

# but symbolic links and aliases may be used to point to other 

# locations.



DocumentRoot /usr/local/www/httpd-1.3/httpdocs



# UserDir: The name of the directory which is appended onto a user's 

# home directory if a user request is received.



UserDir public_html



# DirectoryIndex: Name of the file to use as a pre-written HTML

# directory index



DirectoryIndex index.html



# FancyIndexing is whether you want fancy directory indexing or 

# standard



FancyIndexing on



# AddIcon tells the server which icon to show for different files or 

# filename extensions



AddIconByType (TXT,/icons/text.xbm) text/*

AddIconByType (IMG,/icons/image.xbm) image/*

AddIconByType (SND,/icons/sound.xbm) audio/*

AddIcon /icons/movie.xbm .mpg .qt

AddIcon /icons/binary.xbm .bin .Z .gz .tar

AddIcon /icons/back.xbm ..

AddIcon /icons/menu.xbm ^^DIRECTORY^^

AddIcon /icons/blank.xbm ^^BLANKICON^^



# DefaultIcon is which icon to show for files which do not have an 

# icon explicitly set.



DefaultIcon /icons/unknown.xbm



# AddDescription allows you to place a short description after a

# file in server-generated indexes.

# Format: AddDescription "description" filename



# ReadmeName is the name of the README file the server will look for 

# by default. Format: ReadmeName name

#

# The server will first look for name.html, include it if found, and 

# it will then look for name and include it as plaintext if found.

#

# HeaderName is the name of a file which should be prepended to

# directory indexes.



ReadmeName AAA.README

HeaderName HEADER



# IndexIgnore is a set of filenames which directory indexing should # ignore Format: IndexIgnore name1 name2...



IndexIgnore */.??* *~ *# */HEADER* */README*



# AccessFileName: The name of the file to look for in each 

# directory for access control information.



AccessFileName .htaccess



# DefaultType is the default MIME type for documents which the 

# server cannot find the type of from filename extensions.



DefaultType text/html



# AddType allows you to tweak mime.types without actually editing 

# it, or to make certain files to be certain types.

# Format: AddType type/subtype ext1



# AddEncoding allows you to use certain browsers (Mosaic/X 2.1+) 

# uncompress information on the fly. Note: Not all browsers support 

# this.



#AddEncoding x-compress Z

#AddEncoding x-gzip gz



# Redirect allows you to tell clients about documents which used to 

# exist in your server's namespace, but not any more. This allows 

# you to tell clients where to look for relocated documents.

# Format: Redirect fakename url





# Aliases: Add here as many aliases as you need, up to 20. The 

# format is Alias fakename realname



Alias /icons/ /usr/local/www/httpd-1.3/icons/



# ScriptAlias: This controls which directories contain 

# server scripts. Format: ScriptAlias fakename realname



ScriptAlias /cgi-bin/ /usr/local/www/httpd-1.3/cgi-bin/



# If you want to use server side includes, or CGI outside

# ScriptAliased directories, uncomment the following lines.



#AddType text/x-server-parsed-html .shtml

#AddType application/x-httpd-cgi .cgi




32code03.pl


# access.conf: Global access configuration

# Online docs at http://hoohoo.ncsa.uiuc.edu/

# I suggest you consult them; this is important and confusing stuff.



# /usr/local/etc/httpd/ should be changed to whatever you # set ServerRoot to.



<Directory /usr/local/www/httpd-1.3/cgi-bin>

Options Indexes FollowSymLinks

</Directory>



# This should be changed to whatever you set DocumentRoot 

# to.



<Directory /usr/local/www/httpd-1.3/httpdocs>



# This may also be "None", "All", or any combination of "Indexes",

# "Includes", or "FollowSymLinks"



Options Indexes FollowSymLinks



# This controls which options the .htaccess files in 

# directories can override. Can also be "None", or any 

# combination of "Options", "FileInfo", "AuthConfig", and 

# "Limit"



AllowOverride All



# Controls who can get stuff from this server.



<Limit GET>

order deny,allow

allow from all

</Limit>



</Directory>



# You may place any other directories you wish to have access

# information for after this one.




-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
HOME | BACK | NEXT | MENU | SEARCH | ORDER | COMMENT | HELPINFO -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

E-Mail: The Web Foundations at twf@lanw.com
URL: http://www.lanw.com/twf/codech32.htm
Text - Copyright © 1995, Ed Tittel, Mark Gaither, Sebastian Hassinger, & Mike Erwin.
Web Layout - Copyright © 1995, LANWrights & IMPACT Online.
Revised -- February 15th, 1996 [James Michael Stewart - WebMaster - IMPACT Online]

HTML 2.0 Checked!