################################################################################# # How the Server and tribesmen are organised # ################################################################################# # maybe you would want to change this depending on your security needs # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 # # Server-pool size regulation. Rather than making you guess how many # server processes you need, Apache dynamically adapts to the load it # sees --- that is, it tries to maintain enough server processes to # handle the current load, plus a few spare servers to handle transient # load spikes (e.g., multiple simultaneous requests from a single # Netscape browser). # # It does this by periodically checking how many servers are waiting # for a request. If there are fewer than MinSpareServers, it creates # a new spare. If there are more than MaxSpareServers, some of the # spares die off. The default values are probably OK for most sites. # MinSpareServers 5 MaxSpareServers 10 # # Number of servers to start initially --- should be a reasonable ballpark # figure. # StartServers 5 # # Limit on total number of servers running, i.e., limit on the number # of clients who can simultaneously connect --- if this limit is ever # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW. # It is intended mainly as a brake to keep a runaway server from taking # the system with it as it spirals down... # MaxClients 30 # # MaxRequestsPerChild: the number of requests each child process is # allowed to process before the child dies. The child will exit so # as to avoid problems after prolonged use when Apache (and maybe the # libraries it uses) leak memory or other resources. On most systems, this # isn't really needed, but a few (such as Solaris) do have notable leaks # in the libraries. For these platforms, set to something like 10000 # or so; a setting of 0 means unlimited. # # NOTE: This value does not include keepalive requests after the initial # request per connection. For example, if a child process handles # an initial request and 10 subsequent "keptalive" requests, it # would only count as 1 request towards this limit. # MaxRequestsPerChild 10 ################################################################################# # Server Port, Name User & Group settings # # set Server ROOT DIRECTORY # ################################################################################# # # Port: The port to which the standalone server listens. For # ports < 1023, you will need httpd to be run as root initially. # Port 8080 # # 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. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don't use Group nobody on these systems! # User nobody Group nobody # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your # machine always knows itself by this address. If you use Apache strictly for # local testing and development, you may use 127.0.0.1 as the server name. # #ServerName u516.cs.uow.edu.au ######################################################################################### # This should be changed to whatever you set DocumentRoot to. # ######################################################################################### # This Whole section from the opening angle bracket # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes FollowSymLinks MultiViews # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all # This just say's allow anyone mutliview access in that folder. eg other language files # .htaccess_ directive # this says allow server side includes in the folder 'over' # overridden by a Authconfig directive file .htaccess found in this folder AllowOverride AuthConfig Options Includes # # The following lines prevent .htaccess files from being viewed by # Web clients. Since .htaccess files often contain authorization # information, access is disallowed for security reasons. Comment # these lines out if you want Web visitors to see the contents of # .htaccess files. If you change the AccessFileName directive above, # be sure to make the corresponding changes here. # # Also, folks tend to use names such as .htpasswd for password # files, so this will protect those as well. # Order allow,deny Deny from all # This folder is also only accessible if from cs.uow.edu.au, or by password # to inform of the password override we include the same information as found in # the .htaccess file Order deny,allow Options none Allow from cs.uow.edu.au AllowOverride AuthConfig AuthGroupFile /spare0/csci399/sv24/AP_INST/passwords/.htgroups AuthType Basic AuthName "399_sv24" AuthUserFile /spare0/csci399/sv24/AP_INST/passwords/.htpasswords Require valid-user # This option was used because i didn't want web browsers to have access # to the index of this directory. # this is done for security reasons. Options -Indexes AllowOverride None # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi-bin/ "/spare0/csci399/sv24/AP_INST/cgi-bin/" # # "/spare0/csci399/sv24/AP_INST/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # AllowOverride None Options none Order allow,deny Allow from all # This directive is used to allow cgi programs to be run # from this directory # the option ExecCGI does that AllowOverride None Options ExecCGI Order allow,deny Allow from all # here we set up the languages available to be looked for on this server options MultiViews Allow from all # Danish (da) - Dutch (nl) - English (en) - Estonian (ee) # French (fr) - German (de) - Greek-Modern (el) # Italian (it) - Korean (kr) - Norwegian (no) # Portugese (pt) - Luxembourgeois* (ltz) # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz) # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja) # Russian (ru) # AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .ee AddLanguage fr .fr AddLanguage de .de # here i could disallow the language priority so then everything is taken from # the browsers say so. Regardless of ties and priority LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw ################################################################################## IMPORTANT If you want to use CGI READ THIS!!! ################################################################################### # If you want to use server side includes, or CGI outside # ScriptAliased directories, uncomment the following lines. # # To use CGI scripts: # AddHandler cgi-script .cgi AddHandler cgi-script .pl # # To use server-parsed HTML files # AddType text/html .shtml AddHandler server-parsed .shtml ###################################################################### WHO do you allow access to the services , server-status, and server-info SetHandler server-status Order allow,deny Allow from uow.edu.au # # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".your_domain.com" to match your domain to enable. # SetHandler server-info Order allow,deny Allow from uow.edu.au