# This is the main server configuration file. See URL http://www.apache.org/
# for instructions.
# 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.
# Originally by Rob McCool
# 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
# HostnameLookups: Log the names of clients or just their IP numbers
# e.g. www.apache.org (on) or 204.62.129.132 (off)
# You should probably turn this off unless you are going to actually
# use the information in your logs, or with a CGI. Leaving this on
# can slow down access to your site.
HostnameLookups on
# 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.
User lzc
Group user
# The following directive disables keepalives and HTTP header flushes for
# Netscape 2.x and browsers which spoof it. There are known problems with
# these
BrowserMatch Mozilla/2 nokeepalive
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.
ServerAdmin l.cranswick@dl.ac.uk
# ServerRoot: The directory the server's config, error, and log files
# are kept in
# NOTE! If you intend to place this on a NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation,
# you will save yourself a lot of trouble.
ServerRoot /usr/local/etc/httpd
# BindAddress: You can support virtual hosts with this option. This option
# is used to tell the server which IP address to listen to. It can either
# contain "*", an IP address, or a fully qualified Internet domain name.
# See also the VirtualHost directive.
#BindAddress *
# 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
# ScoreBoardFile: File used to store internal server process information.
# Not all architectures require this. But if yours does (you'll know because
# this file is created when you run Apache) then you *must* ensure that
# no two invocations of Apache share the same scoreboard file.
ScoreBoardFile logs/apache_status
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e. use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
ServerName sv1.ccp14.ac.uk
# CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
# document that was negotiated on the basis of content. This asks proxy
# servers not to cache the document. Uncommenting the following line disables
# this behavior, and proxies will be allowed to cache the documents.
#CacheNegotiatedDocs
# Timeout: The number of seconds before receives and sends time out
Timeout 1800
# 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 reccomend you leave this number high, for maximum performance.
MaxKeepAliveRequests 100
# KeepAliveTimeout: Number of seconds to wait for the next request
KeepAliveTimeout 60
# 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. These values are probably OK for most sites ---
MinSpareServers 15
MaxSpareServers 30
# Number of servers to start --- should be a reasonable ballpark figure.
StartServers 20
# 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
# Unix with it as it spirals down...
MaxClients 250
# 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. On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries.
MaxRequestsPerChild 1000
# Proxy Server directives. Uncomment the following line to
# enable the proxy server:
#ProxyRequests On
# To enable the cache as well, edit and uncomment the following lines:
#CacheRoot /usr/local/etc/httpd/proxy
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a_domain.com another_domain.edu joes.garage_sale.com
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the VirtualHost command
#Listen 3000
#Listen 12.34.56.78:80
# VirtualHost: Allows the daemon to respond to requests for more than one
# server address, if your server machine is configured to accept IP packets
# for multiple addresses. This can be accomplished with the ifconfig
# alias flag, or through kernel patches like VIF.
#MOD SPELLING MODULE
CheckSpelling On
# Redirect people who access admin areas somewhere else.
RewriteEngine on
RewriteRule ^/bin/(.*) http://www.ccp14.ac.uk/bad-link.html [R]
RewriteRule ^/dev/(.*) http://www.ccp14.ac.uk/bad-link.html [R]
RewriteRule ^/etc/(.*) http://www.ccp14.ac.uk/bad-link.html [R]
RewriteRule ^/mirrorbin/(.*) http://www.ccp14.ac.uk/bad-link.html [R]
RewriteRule ^/lib/(.*) http://www.ccp14.ac.uk/bad-link.html [L,R]
# Any httpd.conf or srm.conf directive may go into a VirtualHost command.
# See also the BindAddress entry.
ServerAdmin l.cranswick@dl.ac.uk
DocumentRoot /web_disc/ccp14/web_area/web_live
ServerName www.ccp14.ac.uk
Alias /rib/ /usr/local/rib/
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/ccp14/
ScriptAlias /rib/cgi-bin/ /usr/local/rib/cgi-bin/
RewriteEngine on
RewriteRule ^//(.*) /$1 [R]
RewriteRule ^/CCP/CCP14/(.*) http://www.ccp14.ac.uk/$1 [R]
RewriteRule ^/ccp/ccp14/ftp-mirror/programming/(.*) http://programming.ccp14.ac.uk/ftp-mirror/programming/$1 [R]
RewriteRule ^//ccp/ccp14/ftp-mirror/programming/(.*) http://programming.ccp14.ac.uk/ftp-mirror/programming/$1 [R]
RewriteRule ^/ccp/web-mirrors/ill-hewat/(.*) http://icsd.ccp14.ac.uk/$1 [R]
RewriteRule ^//ccp/web-mirrors/ill-hewat/(.*) http://icsd.ccp14.ac.uk/$1 [R]
RewriteRule ^/ccp/web-mirrors/programming/gnu/(.*) http://gnu.ccp14.ac.uk/$1 [R]
RewriteRule ^//ccp/web-mirrors/programming/gnu/(.*) http://gnu.ccp14.ac.uk/$1 [R]
RewriteRule ^/ccp/web-mirrors/alife/santafe/(.*) http://www.santafe.edu/$1 [R]
RewriteRule ^//ccp/web-mirrors/alife/santafe/(.*) http://www.santafe.edu/$1 [R]
RewriteRule ^/ccp/ccp14/ftp-mirror/alife/santafe/(.*) ftp://ftp.santafe.edu/$1 [R]
RewriteRule ^//ccp/ccp14/ftp-mirror/alife/santafe/(.*) ftp://ftp.santafe.edu/$1 [R]
RewriteRule ^/ccp/web-mirrors/alife/(.*) http://alife.ccp14.ac.uk/$1 [R]
RewriteRule ^//ccp/web-mirrors/alife/(.*) http://alife.ccp14.ac.uk/$1 [R]
RewriteRule ^/ccp/ccp14/ftp-mirror/programming/(.*) http://programming.ccp14.ac.uk/ftp-mirror/programming/$1 [R]
RewriteRule ^//ccp/ccp14/ftp-mirror/programming/(.*) http://programming.ccp14.ac.uk/ftp-mirror/programming/$1 [R]
RewriteRule ^/ccp/ccp14/ftp-mirror/alife/(.*) http://alife.ccp14.ac.uk/ftp-mirror/alife/$1 [R]
RewriteRule ^//ccp/ccp14/ftp-mirror/alife/(.*) http://alife.ccp14.ac.uk/ftp-mirror/alife/$1 [R]
RewriteRule ^/ccp/web-mirrors/programming/nhse/(.*) http://www.nhse.org/$1 [R]
RewriteRule ^//ccp/web-mirrors/programming/nhse/(.*) http://www.nhse.org/$1 [R]
RewriteRule ^/ccp/web-mirrors/programming/netlib/(.*) http://netlib.ccp14.ac.uk/$1 [R]
RewriteRule ^//ccp/web-mirrors/programming/netlib/(.*) http://netlib.ccp14.ac.uk/$1 [R]
RewriteRule ^/ccp/web-mirrors/programming/(.*) http://programming.ccp14.ac.uk/$1 [R]
RewriteRule ^//ccp/web-mirrors/programming/(.*) http://programming.ccp14.ac.uk/$1 [R]
RewriteRule ^/ccp/ccp14/ftp-mirror/programming(.*) http://programming.ccp14.ac.uk/ftp-mirror/programming$1 [L]
RewriteRule ^//ccp/ccp14/ftp-mirror/programming(.*) http://programming.ccp14.ac.uk/ftp-mirror/programming$1 [L,R]
ErrorLog logs/www.ccp14.ac.uk-error_log
TransferLog logs/www.ccp14.ac.uk-access_log
ServerAdmin l.cranswick@dl.ac.uk
DocumentRoot /web_disc/ccp14/web_area/netlib
ServerName netlib.ccp14.ac.uk
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/netlib/
ErrorLog logs/netlib.ccp14.ac.uk-error_log
TransferLog logs/netlib.ccp14.ac.uk-access_log
ServerAdmin l.cranswick@dl.ac.uk
DocumentRoot /web_disc/ccp14/web_area/gnu
ServerName gnu.ccp14.ac.uk
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/gnu/
ErrorLog logs/gnu.ccp14.ac.uk-error_log
TransferLog logs/gnu.ccp14.ac.uk-access_log
ServerAdmin l.cranswick@dl.ac.uk
DocumentRoot /web_disc/ccp14/web_area/alife
ServerName alife.ccp14.ac.uk
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/alife/
ErrorLog logs/alife.ccp14.ac.uk-error_log
TransferLog logs/alife.ccp14.ac.uk-access_log
ServerAdmin l.cranswick@dl.ac.uk
DocumentRoot /web_disc/ccp14/web_area/programming
ServerName programming.ccp14.ac.uk
RewriteEngine on
RewriteRule ^/cgi-bin/netlibget.pl/(.*) http://www.netlib.org/cgi-bin/netlibget.pl/$1 [R]
RewriteRule ^/netlib/(.*) http://netlib.ccp14.ac.uk/$1 [R,L]
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/programming/
ErrorLog logs/programming.ccp14.ac.uk-error_log
TransferLog logs/programming.ccp14.ac.uk-access_log
ServerAdmin l.cranswick@dl.ac.uk
DocumentRoot /web_disc/ccp14/web_area/stats
ServerName webstats.ccp14.ac.uk
ErrorLog logs/webstats.ccp14.ac.uk-error_log
TransferLog logs/webstats.ccp14.ac.uk-access_log
ServerAdmin l.cranswick@dl.ac.uk
DocumentRoot /web_disc/ccp14/web_area/icsd
ServerName icsd.ccp14.ac.uk
RewriteRule ^/dif/(.*) /$1 [R,L]
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/icsd/
ErrorLog logs/icsd.ccp14.ac.uk-error_log
TransferLog logs/icsd.ccp14.ac.uk-access_log