[system] / branches / gage_dev / webwork2 / conf / devel-site.apache2-config.dist Repository:
ViewVC logotype

View of /branches/gage_dev/webwork2/conf/devel-site.apache2-config.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6299 - (download) (annotate)
Tue Jun 22 14:46:58 2010 UTC (2 years, 11 months ago) by gage
File size: 39863 byte(s)
test development branch

    1 ################################################################################
    2 # WeBWorK Online Homework Delivery System
    3 # $CVSHeader: webwork2/conf/devel-site.apache2-config.dist,v 1.3 2006/08/03 16:13:48 sh002i Exp $
    4 ################################################################################
    5 
    6 # This file contains the site-specific (but user-independent) directives used
    7 # in the configuration of Apache servers for WeBWorK development. See the file
    8 # devel.apache-config for more information.
    9 #
   10 # Configure this file to match your main Apache configuration file, usually
   11 # apache.conf or httpd.conf. This file is based on the slightly-modified
   12 # httpd.conf as installed on devel.webwork.rochester.edu.
   13 
   14 #
   15 # Based upon the NCSA server configuration files originally by Rob McCool.
   16 #
   17 # This is the main Apache server configuration file.  It contains the
   18 # configuration directives that give the server its instructions.
   19 # See <URL:http://httpd.apache.org/docs/2.0/> for detailed information about
   20 # the directives.
   21 #
   22 # Do NOT simply read the instructions in here without understanding
   23 # what they do.  They're here only as hints or reminders.  If you are unsure
   24 # consult the online docs. You have been warned.
   25 #
   26 # The configuration directives are grouped into three basic sections:
   27 #  1. Directives that control the operation of the Apache server process as a
   28 #     whole (the 'global environment').
   29 #  2. Directives that define the parameters of the 'main' or 'default' server,
   30 #     which responds to requests that aren't handled by a virtual host.
   31 #     These directives also provide default values for the settings
   32 #     of all virtual hosts.
   33 #  3. Settings for virtual hosts, which allow Web requests to be sent to
   34 #     different IP addresses or hostnames and have them handled by the
   35 #     same Apache server process.
   36 #
   37 # Configuration and logfile names: If the filenames you specify for many
   38 # of the server's control files begin with "/" (or "drive:/" for Win32), the
   39 # server will use that explicit path.  If the filenames do *not* begin
   40 # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
   41 # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
   42 # server as "/usr/local/apache2/logs/foo.log".
   43 #
   44 
   45 ### Section 1: Global Environment
   46 #
   47 # The directives in this section affect the overall operation of Apache,
   48 # such as the number of concurrent requests it can handle or where it
   49 # can find its configuration files.
   50 #
   51 
   52 #
   53 # ServerRoot: The top of the directory tree under which the server's
   54 # configuration, error, and log files are kept.
   55 #
   56 # NOTE!  If you intend to place this on an NFS (or otherwise network)
   57 # mounted filesystem then please read the LockFile documentation (available
   58 # at <URL:http://httpd.apache.org/docs/2.0/mod/mpm_common.html#lockfile>);
   59 # you will save yourself a lot of trouble.
   60 #
   61 # Do NOT add a slash at the end of the directory path.
   62 #
   63 #ww# passed in when httpd is started (-d)
   64 #ServerRoot "/usr/local/apache2"
   65 
   66 #
   67 # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
   68 #
   69 <IfModule !mpm_winnt.c>
   70 <IfModule !mpm_netware.c>
   71 #LockFile logs/accept.lock
   72 </IfModule>
   73 </IfModule>
   74 
   75 #
   76 # ScoreBoardFile: File used to store internal server process information.
   77 # If unspecified (the default), the scoreboard will be stored in an
   78 # anonymous shared memory segment, and will be unavailable to third-party
   79 # applications.
   80 # If specified, ensure that no two invocations of Apache share the same
   81 # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
   82 #
   83 <IfModule !mpm_netware.c>
   84 <IfModule !perchild.c>
   85 #ScoreBoardFile logs/apache_runtime_status
   86 </IfModule>
   87 </IfModule>
   88 
   89 
   90 #
   91 # PidFile: The file in which the server should record its process
   92 # identification number when it starts.
   93 #
   94 <IfModule !mpm_netware.c>
   95 #ww# don't clobber apache1 pidfile
   96 #PidFile logs/httpd.pid
   97 PidFile logs/httpd2.pid
   98 </IfModule>
   99 
  100 #
  101 # Timeout: The number of seconds before receives and sends time out.
  102 #
  103 Timeout 300
  104 
  105 #
  106 # KeepAlive: Whether or not to allow persistent connections (more than
  107 # one request per connection). Set to "Off" to deactivate.
  108 #
  109 KeepAlive On
  110 
  111 #
  112 # MaxKeepAliveRequests: The maximum number of requests to allow
  113 # during a persistent connection. Set to 0 to allow an unlimited amount.
  114 # We recommend you leave this number high, for maximum performance.
  115 #
  116 MaxKeepAliveRequests 100
  117 
  118 #
  119 # KeepAliveTimeout: Number of seconds to wait for the next request from the
  120 # same client on the same connection.
  121 #
  122 KeepAliveTimeout 15
  123 
  124 ##
  125 ## Server-Pool Size Regulation (MPM specific)
  126 ##
  127 
  128 # prefork MPM
  129 # StartServers: number of server processes to start
  130 # MinSpareServers: minimum number of server processes which are kept spare
  131 # MaxSpareServers: maximum number of server processes which are kept spare
  132 # MaxClients: maximum number of server processes allowed to start
  133 # MaxRequestsPerChild: maximum number of requests a server process serves
  134 <IfModule prefork.c>
  135 StartServers         5
  136 MinSpareServers      5
  137 MaxSpareServers     10
  138 MaxClients         150
  139 MaxRequestsPerChild  0
  140 </IfModule>
  141 
  142 # worker MPM
  143 # StartServers: initial number of server processes to start
  144 # MaxClients: maximum number of simultaneous client connections
  145 # MinSpareThreads: minimum number of worker threads which are kept spare
  146 # MaxSpareThreads: maximum number of worker threads which are kept spare
  147 # ThreadsPerChild: constant number of worker threads in each server process
  148 # MaxRequestsPerChild: maximum number of requests a server process serves
  149 <IfModule worker.c>
  150 StartServers         2
  151 MaxClients         150
  152 MinSpareThreads     25
  153 MaxSpareThreads     75
  154 ThreadsPerChild     25
  155 MaxRequestsPerChild  0
  156 </IfModule>
  157 
  158 # perchild MPM
  159 # NumServers: constant number of server processes
  160 # StartThreads: initial number of worker threads in each server process
  161 # MinSpareThreads: minimum number of worker threads which are kept spare
  162 # MaxSpareThreads: maximum number of worker threads which are kept spare
  163 # MaxThreadsPerChild: maximum number of worker threads in each server process
  164 # MaxRequestsPerChild: maximum number of connections per server process
  165 <IfModule perchild.c>
  166 NumServers           5
  167 StartThreads         5
  168 MinSpareThreads      5
  169 MaxSpareThreads     10
  170 MaxThreadsPerChild  20
  171 MaxRequestsPerChild  0
  172 </IfModule>
  173 
  174 # WinNT MPM
  175 # ThreadsPerChild: constant number of worker threads in the server process
  176 # MaxRequestsPerChild: maximum  number of requests a server process serves
  177 <IfModule mpm_winnt.c>
  178 ThreadsPerChild 250
  179 MaxRequestsPerChild  0
  180 </IfModule>
  181 
  182 # BeOS MPM
  183 # StartThreads: how many threads do we initially spawn?
  184 # MaxClients:   max number of threads we can have (1 thread == 1 client)
  185 # MaxRequestsPerThread: maximum number of requests each thread will process
  186 <IfModule beos.c>
  187 StartThreads               10
  188 MaxClients                 50
  189 MaxRequestsPerThread       10000
  190 </IfModule>
  191 
  192 # NetWare MPM
  193 # ThreadStackSize: Stack size allocated for each worker thread
  194 # StartThreads: Number of worker threads launched at server startup
  195 # MinSpareThreads: Minimum number of idle threads, to handle request spikes
  196 # MaxSpareThreads: Maximum number of idle threads
  197 # MaxThreads: Maximum number of worker threads alive at the same time
  198 # MaxRequestsPerChild: Maximum  number of requests a thread serves. It is
  199 #                      recommended that the default value of 0 be set for this
  200 #                      directive on NetWare.  This will allow the thread to
  201 #                      continue to service requests indefinitely.
  202 <IfModule mpm_netware.c>
  203 ThreadStackSize      65536
  204 StartThreads           250
  205 MinSpareThreads         25
  206 MaxSpareThreads        250
  207 MaxThreads            1000
  208 MaxRequestsPerChild      0
  209 MaxMemFree             100
  210 </IfModule>
  211 
  212 # OS/2 MPM
  213 # StartServers: Number of server processes to maintain
  214 # MinSpareThreads: Minimum number of idle threads per process,
  215 #                  to handle request spikes
  216 # MaxSpareThreads: Maximum number of idle threads per process
  217 # MaxRequestsPerChild: Maximum number of connections per server process
  218 <IfModule mpmt_os2.c>
  219 StartServers           2
  220 MinSpareThreads        5
  221 MaxSpareThreads       10
  222 MaxRequestsPerChild    0
  223 </IfModule>
  224 
  225 #
  226 # Listen: Allows you to bind Apache to specific IP addresses and/or
  227 # ports, instead of the default. See also the <VirtualHost>
  228 # directive.
  229 #
  230 # Change this to Listen on specific IP addresses as shown below to
  231 # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  232 #
  233 #Listen 12.34.56.78:80
  234 #ww# set in devel.apache2-config
  235 #Listen 0.0.0.0:80
  236 #Listen [::]:80
  237 
  238 #
  239 # Dynamic Shared Object (DSO) Support
  240 #
  241 # To be able to use the functionality of a module which was built as a DSO you
  242 # have to place corresponding `LoadModule' lines at this location so the
  243 # directives contained in it are actually available _before_ they are used.
  244 # Statically compiled modules (those listed by `httpd -l') do not need
  245 # to be loaded here.
  246 #
  247 # Example:
  248 # LoadModule foo_module modules/mod_foo.so
  249 #
  250 #ww# prepend /usr/local/apache2 to each path here
  251 #ww# some unneeded modules commented out
  252 #ww#LoadModule auth_anon_module /usr/local/apache2/modules/mod_auth_anon.so
  253 #ww#LoadModule auth_dbm_module /usr/local/apache2/modules/mod_auth_dbm.so
  254 #ww#LoadModule auth_digest_module /usr/local/apache2/modules/mod_auth_digest.so
  255 LoadModule file_cache_module /usr/local/apache2/modules/mod_file_cache.so
  256 LoadModule cache_module /usr/local/apache2/modules/mod_cache.so
  257 LoadModule disk_cache_module /usr/local/apache2/modules/mod_disk_cache.so
  258 LoadModule ext_filter_module /usr/local/apache2/modules/mod_ext_filter.so
  259 LoadModule include_module /usr/local/apache2/modules/mod_include.so
  260 LoadModule deflate_module /usr/local/apache2/modules/mod_deflate.so
  261 LoadModule mime_magic_module /usr/local/apache2/modules/mod_mime_magic.so
  262 LoadModule cern_meta_module /usr/local/apache2/modules/mod_cern_meta.so
  263 LoadModule expires_module /usr/local/apache2/modules/mod_expires.so
  264 LoadModule headers_module /usr/local/apache2/modules/mod_headers.so
  265 LoadModule usertrack_module /usr/local/apache2/modules/mod_usertrack.so
  266 LoadModule unique_id_module /usr/local/apache2/modules/mod_unique_id.so
  267 #ww#LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so
  268 #ww#LoadModule proxy_connect_module /usr/local/apache2/modules/mod_proxy_connect.so
  269 #ww#LoadModule proxy_ftp_module /usr/local/apache2/modules/mod_proxy_ftp.so
  270 #ww#LoadModule proxy_http_module /usr/local/apache2/modules/mod_proxy_http.so
  271 <IfDefine SSL>
  272 LoadModule ssl_module /usr/local/apache2/modules/mod_ssl.so
  273 </IfDefine>
  274 #ww#LoadModule dav_module /usr/local/apache2/modules/mod_dav.so
  275 LoadModule asis_module /usr/local/apache2/modules/mod_asis.so
  276 LoadModule info_module /usr/local/apache2/modules/mod_info.so
  277 #ww#LoadModule suexec_module /usr/local/apache2/modules/mod_suexec.so
  278 #ww#LoadModule cgi_module /usr/local/apache2/modules/mod_cgi.so
  279 #ww#LoadModule cgid_module /usr/local/apache2/modules/mod_cgid.so
  280 #ww#LoadModule dav_fs_module /usr/local/apache2/modules/mod_dav_fs.so
  281 LoadModule vhost_alias_module /usr/local/apache2/modules/mod_vhost_alias.so
  282 LoadModule imap_module /usr/local/apache2/modules/mod_imap.so
  283 LoadModule actions_module /usr/local/apache2/modules/mod_actions.so
  284 LoadModule speling_module /usr/local/apache2/modules/mod_speling.so
  285 LoadModule userdir_module /usr/local/apache2/modules/mod_userdir.so
  286 LoadModule rewrite_module /usr/local/apache2/modules/mod_rewrite.so
  287 LoadModule perl_module /usr/local/apache2/modules/mod_perl.so
  288 LoadModule apreq_module /usr/local/apache2/modules/mod_apreq2.so
  289 
  290 #
  291 # ExtendedStatus controls whether Apache will generate "full" status
  292 # information (ExtendedStatus On) or just basic information (ExtendedStatus
  293 # Off) when the "server-status" handler is called. The default is Off.
  294 #
  295 #ExtendedStatus On
  296 
  297 ### Section 2: 'Main' server configuration
  298 #
  299 # The directives in this section set up the values used by the 'main'
  300 # server, which responds to any requests that aren't handled by a
  301 # <VirtualHost> definition.  These values also provide defaults for
  302 # any <VirtualHost> containers you may define later in the file.
  303 #
  304 # All of these directives may appear inside <VirtualHost> containers,
  305 # in which case these default settings will be overridden for the
  306 # virtual host being defined.
  307 #
  308 
  309 <IfModule !mpm_winnt.c>
  310 <IfModule !mpm_netware.c>
  311 #
  312 # If you wish httpd to run as a different user or group, you must run
  313 # httpd as root initially and it will switch.
  314 #
  315 # User/Group: The name (or #number) of the user/group to run httpd as.
  316 #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  317 #  . On HPUX you may not be able to use shared memory as nobody, and the
  318 #    suggested workaround is to create a user www and use that user.
  319 #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  320 #  when the value of (unsigned)Group is above 60000;
  321 #  don't use Group #-1 on these systems!
  322 #
  323 #ww# set in devel.apache2-config
  324 #User nobody
  325 #Group #-1
  326 </IfModule>
  327 </IfModule>
  328 
  329 #
  330 # ServerAdmin: Your address, where problems with the server should be
  331 # e-mailed.  This address appears on some server-generated pages, such
  332 # as error documents.  e.g. admin@your-domain.com
  333 #
  334 #ww# set in devel.apache2-config
  335 #ServerAdmin you@example.com
  336 
  337 #
  338 # ServerName gives the name and port that the server uses to identify itself.
  339 # This can often be determined automatically, but we recommend you specify
  340 # it explicitly to prevent problems during startup.
  341 #
  342 # If this is not set to valid DNS name for your host, server-generated
  343 # redirections will not work.  See also the UseCanonicalName directive.
  344 #
  345 # If your host doesn't have a registered DNS name, enter its IP address here.
  346 # You will have to access it by its address anyway, and this will make
  347 # redirections work in a sensible way.
  348 #
  349 #ServerName www.example.com:80
  350 
  351 #
  352 # UseCanonicalName: Determines how Apache constructs self-referencing
  353 # URLs and the SERVER_NAME and SERVER_PORT variables.
  354 # When set "Off", Apache will use the Hostname and Port supplied
  355 # by the client.  When set "On", Apache will use the value of the
  356 # ServerName directive.
  357 #
  358 UseCanonicalName Off
  359 
  360 #
  361 # DocumentRoot: The directory out of which you will serve your
  362 # documents. By default, all requests are taken from this directory, but
  363 # symbolic links and aliases may be used to point to other locations.
  364 #
  365 DocumentRoot "/usr/local/apache2/htdocs"
  366 
  367 #
  368 # Each directory to which Apache has access can be configured with respect
  369 # to which services and features are allowed and/or disabled in that
  370 # directory (and its subdirectories).
  371 #
  372 # First, we configure the "default" to be a very restrictive set of
  373 # features.
  374 #
  375 <Directory />
  376     Options FollowSymLinks
  377     AllowOverride None
  378 </Directory>
  379 
  380 #
  381 # Note that from this point forward you must specifically allow
  382 # particular features to be enabled - so if something's not working as
  383 # you might expect, make sure that you have specifically enabled it
  384 # below.
  385 #
  386 
  387 #
  388 # This should be changed to whatever you set DocumentRoot to.
  389 #
  390 <Directory "/usr/local/apache2/htdocs">
  391 
  392 #
  393 # Possible values for the Options directive are "None", "All",
  394 # or any combination of:
  395 #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  396 #
  397 # Note that "MultiViews" must be named *explicitly* --- "Options All"
  398 # doesn't give it to you.
  399 #
  400 # The Options directive is both complicated and important.  Please see
  401 # http://httpd.apache.org/docs/2.0/mod/core.html#options
  402 # for more information.
  403 #
  404     Options Indexes FollowSymLinks
  405 
  406 #
  407 # AllowOverride controls what directives may be placed in .htaccess files.
  408 # It can be "All", "None", or any combination of the keywords:
  409 #   Options FileInfo AuthConfig Limit Indexes
  410 #
  411     AllowOverride None
  412 
  413 #
  414 # Controls who can get stuff from this server.
  415 #
  416     Order allow,deny
  417     Allow from all
  418 
  419 </Directory>
  420 
  421 #
  422 # UserDir: The name of the directory that is appended onto a user's home
  423 # directory if a ~user request is received.
  424 #
  425 #ww# don't need userdirs
  426 #UserDir public_html
  427 
  428 #
  429 # Control access to UserDir directories.  The following is an example
  430 # for a site where these directories are restricted to read-only.
  431 #
  432 #<Directory /home/*/public_html>
  433 #    AllowOverride FileInfo AuthConfig Limit Indexes
  434 #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  435 #    <Limit GET POST OPTIONS PROPFIND>
  436 #        Order allow,deny
  437 #        Allow from all
  438 #    </Limit>
  439 #    <LimitExcept GET POST OPTIONS PROPFIND>
  440 #        Order deny,allow
  441 #        Deny from all
  442 #    </LimitExcept>
  443 #</Directory>
  444 
  445 #
  446 # DirectoryIndex: sets the file that Apache will serve if a directory
  447 # is requested.
  448 #
  449 # The index.html.var file (a type-map) is used to deliver content-
  450 # negotiated documents.  The MultiViews Option can be used for the
  451 # same purpose, but it is much slower.
  452 #
  453 DirectoryIndex index.html index.html.var
  454 
  455 #
  456 # AccessFileName: The name of the file to look for in each directory
  457 # for additional configuration directives.  See also the AllowOverride
  458 # directive.
  459 #
  460 AccessFileName .htaccess
  461 
  462 #
  463 # The following lines prevent .htaccess and .htpasswd files from being
  464 # viewed by Web clients.
  465 #
  466 <FilesMatch "^\.ht">
  467     Order allow,deny
  468     Deny from all
  469 </FilesMatch>
  470 
  471 #
  472 # TypesConfig describes where the mime.types file (or equivalent) is
  473 # to be found.
  474 #
  475 #ww# need full path
  476 #TypesConfig conf/mime.types
  477 TypesConfig /usr/local/apache2/conf/mime.types
  478 
  479 #
  480 # DefaultType is the default MIME type the server will use for a document
  481 # if it cannot otherwise determine one, such as from filename extensions.
  482 # If your server contains mostly text or HTML documents, "text/plain" is
  483 # a good value.  If most of your content is binary, such as applications
  484 # or images, you may want to use "application/octet-stream" instead to
  485 # keep browsers from trying to display binary files as though they are
  486 # text.
  487 #
  488 DefaultType text/plain
  489 
  490 #
  491 # The mod_mime_magic module allows the server to use various hints from the
  492 # contents of the file itself to determine its type.  The MIMEMagicFile
  493 # directive tells the module where the hint definitions are located.
  494 #
  495 <IfModule mod_mime_magic.c>
  496     #ww# need full path
  497     #MIMEMagicFile conf/magic
  498     MIMEMagicFile /usr/local/apache2/conf/magic
  499 </IfModule>
  500 
  501 #
  502 # HostnameLookups: Log the names of clients or just their IP addresses
  503 # e.g., www.apache.org (on) or 204.62.129.132 (off).
  504 # The default is off because it'd be overall better for the net if people
  505 # had to knowingly turn this feature on, since enabling it means that
  506 # each client request will result in AT LEAST one lookup request to the
  507 # nameserver.
  508 #
  509 HostnameLookups Off
  510 
  511 #
  512 # EnableMMAP: Control whether memory-mapping is used to deliver
  513 # files (assuming that the underlying OS supports it).
  514 # The default is on; turn this off if you serve from NFS-mounted
  515 # filesystems.  On some systems, turning it off (regardless of
  516 # filesystem) can improve performance; for details, please see
  517 # http://httpd.apache.org/docs/2.0/mod/core.html#enablemmap
  518 #
  519 #EnableMMAP off
  520 
  521 #
  522 # EnableSendfile: Control whether the sendfile kernel support is
  523 # used  to deliver files (assuming that the OS supports it).
  524 # The default is on; turn this off if you serve from NFS-mounted
  525 # filesystems.  Please see
  526 # http://httpd.apache.org/docs/2.0/mod/core.html#enablesendfile
  527 #
  528 #EnableSendfile off
  529 
  530 #
  531 # ErrorLog: The location of the error log file.
  532 # If you do not specify an ErrorLog directive within a <VirtualHost>
  533 # container, error messages relating to that virtual host will be
  534 # logged here.  If you *do* define an error logfile for a <VirtualHost>
  535 # container, that host's errors will be logged there and not here.
  536 #
  537 #sam# name this specifically for apache2
  538 #ErrorLog logs/error_log
  539 ErrorLog logs/httpd2-error.log
  540 
  541 #
  542 # LogLevel: Control the number of messages logged to the error_log.
  543 # Possible values include: debug, info, notice, warn, error, crit,
  544 # alert, emerg.
  545 #
  546 LogLevel warn
  547 #LogLevel debug
  548 
  549 #
  550 # The following directives define some format nicknames for use with
  551 # a CustomLog directive (see below).
  552 #
  553 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  554 LogFormat "%h %l %u %t \"%r\" %>s %b" common
  555 LogFormat "%{Referer}i -> %U" referer
  556 LogFormat "%{User-agent}i" agent
  557 
  558 # You need to enable mod_logio.c to use %I and %O
  559 #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  560 
  561 #
  562 # The location and format of the access logfile (Common Logfile Format).
  563 # If you do not define any access logfiles within a <VirtualHost>
  564 # container, they will be logged here.  Contrariwise, if you *do*
  565 # define per-<VirtualHost> access logfiles, transactions will be
  566 # logged therein and *not* in this file.
  567 #
  568 #ww# use combined format instead (below)
  569 #CustomLog logs/access_log common
  570 
  571 #
  572 # If you would like to have agent and referer logfiles, uncomment the
  573 # following directives.
  574 #
  575 #CustomLog logs/referer_log referer
  576 #CustomLog logs/agent_log agent
  577 
  578 #
  579 # If you prefer a single logfile with access, agent, and referer information
  580 # (Combined Logfile Format) you can use the following directive.
  581 #
  582 #ww# use combined format instead
  583 #ww# name this specifically for apache2
  584 #CustomLog logs/access_log combined
  585 CustomLog logs/httpd2-access.log combined
  586 
  587 #
  588 # ServerTokens
  589 # This directive configures what you return as the Server HTTP response
  590 # Header. The default is 'Full' which sends information about the OS-Type
  591 # and compiled in modules.
  592 # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
  593 # where Full conveys the most information, and Prod the least.
  594 #
  595 ServerTokens Full
  596 
  597 #
  598 # Optionally add a line containing the server version and virtual host
  599 # name to server-generated pages (internal error documents, FTP directory
  600 # listings, mod_status and mod_info output etc., but not CGI generated
  601 # documents or custom error documents).
  602 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  603 # Set to one of:  On | Off | EMail
  604 #
  605 ServerSignature On
  606 
  607 #
  608 # Aliases: Add here as many aliases as you need (with no limit). The format is
  609 # Alias fakename realname
  610 #
  611 # Note that if you include a trailing / on fakename then the server will
  612 # require it to be present in the URL.  So "/icons" isn't aliased in this
  613 # example, only "/icons/".  If the fakename is slash-terminated, then the
  614 # realname must also be slash terminated, and if the fakename omits the
  615 # trailing slash, the realname must also omit it.
  616 #
  617 # We include the /icons/ alias for FancyIndexed directory listings.  If you
  618 # do not use FancyIndexing, you may comment this out.
  619 #
  620 Alias /icons/ "/usr/local/apache2/icons/"
  621 
  622 <Directory "/usr/local/apache2/icons">
  623     Options Indexes MultiViews
  624     AllowOverride None
  625     Order allow,deny
  626     Allow from all
  627 </Directory>
  628 
  629 #
  630 # This should be changed to the ServerRoot/manual/.  The alias provides
  631 # the manual, even if you choose to move your DocumentRoot.  You may comment
  632 # this out if you do not care for the documentation.
  633 #
  634 AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/local/apache2/manual$1"
  635 
  636 <Directory "/usr/local/apache2/manual">
  637     Options Indexes
  638     AllowOverride None
  639     Order allow,deny
  640     Allow from all
  641 
  642     <Files *.html>
  643         SetHandler type-map
  644     </Files>
  645 
  646     SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
  647     RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
  648 </Directory>
  649 
  650 #
  651 # ScriptAlias: This controls which directories contain server scripts.
  652 # ScriptAliases are essentially the same as Aliases, except that
  653 # documents in the realname directory are treated as applications and
  654 # run by the server when requested rather than as documents sent to the client.
  655 # The same rules about trailing "/" apply to ScriptAlias directives as to
  656 # Alias.
  657 #
  658 #ww# don't need cgi dir
  659 #ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
  660 
  661 <IfModule mod_cgid.c>
  662 #
  663 # Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
  664 # for setting UNIX socket for communicating with cgid.
  665 #
  666 #Scriptsock            logs/cgisock
  667 </IfModule>
  668 
  669 #
  670 # "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
  671 # CGI directory exists, if you have that configured.
  672 #
  673 #ww# don't need cgi dir
  674 #<Directory "/usr/local/apache2/cgi-bin">
  675 #    AllowOverride None
  676 #    Options None
  677 #    Order allow,deny
  678 #    Allow from all
  679 #</Directory>
  680 
  681 #
  682 # Redirect allows you to tell clients about documents which used to exist in
  683 # your server's namespace, but do not anymore. This allows you to tell the
  684 # clients where to look for the relocated document.
  685 # Example:
  686 # Redirect permanent /foo http://www.example.com/bar
  687 
  688 #
  689 # Directives controlling the display of server-generated directory listings.
  690 #
  691 
  692 #
  693 # IndexOptions: Controls the appearance of server-generated directory
  694 # listings.
  695 #
  696 IndexOptions FancyIndexing VersionSort
  697 
  698 #
  699 # AddIcon* directives tell the server which icon to show for different
  700 # files or filename extensions.  These are only displayed for
  701 # FancyIndexed directories.
  702 #
  703 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  704 
  705 AddIconByType (TXT,/icons/text.gif) text/*
  706 AddIconByType (IMG,/icons/image2.gif) image/*
  707 AddIconByType (SND,/icons/sound2.gif) audio/*
  708 AddIconByType (VID,/icons/movie.gif) video/*
  709 
  710 AddIcon /icons/binary.gif .bin .exe
  711 AddIcon /icons/binhex.gif .hqx
  712 AddIcon /icons/tar.gif .tar
  713 AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  714 AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  715 AddIcon /icons/a.gif .ps .ai .eps
  716 AddIcon /icons/layout.gif .html .shtml .htm .pdf
  717 AddIcon /icons/text.gif .txt
  718 AddIcon /icons/c.gif .c
  719 AddIcon /icons/p.gif .pl .py
  720 AddIcon /icons/f.gif .for
  721 AddIcon /icons/dvi.gif .dvi
  722 AddIcon /icons/uuencoded.gif .uu
  723 AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  724 AddIcon /icons/tex.gif .tex
  725 AddIcon /icons/bomb.gif core
  726 
  727 AddIcon /icons/back.gif ..
  728 AddIcon /icons/hand.right.gif README
  729 AddIcon /icons/folder.gif ^^DIRECTORY^^
  730 AddIcon /icons/blank.gif ^^BLANKICON^^
  731 
  732 #
  733 # DefaultIcon is which icon to show for files which do not have an icon
  734 # explicitly set.
  735 #
  736 DefaultIcon /icons/unknown.gif
  737 
  738 #
  739 # AddDescription allows you to place a short description after a file in
  740 # server-generated indexes.  These are only displayed for FancyIndexed
  741 # directories.
  742 # Format: AddDescription "description" filename
  743 #
  744 #AddDescription "GZIP compressed document" .gz
  745 #AddDescription "tar archive" .tar
  746 #AddDescription "GZIP compressed tar archive" .tgz
  747 
  748 #
  749 # ReadmeName is the name of the README file the server will look for by
  750 # default, and append to directory listings.
  751 #
  752 # HeaderName is the name of a file which should be prepended to
  753 # directory indexes.
  754 ReadmeName README.html
  755 HeaderName HEADER.html
  756 
  757 #
  758 # IndexIgnore is a set of filenames which directory indexing should ignore
  759 # and not include in the listing.  Shell-style wildcarding is permitted.
  760 #
  761 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  762 
  763 #
  764 # DefaultLanguage and AddLanguage allows you to specify the language of
  765 # a document. You can then use content negotiation to give a browser a
  766 # file in a language the user can understand.
  767 #
  768 # Specify a default language. This means that all data
  769 # going out without a specific language tag (see below) will
  770 # be marked with this one. You probably do NOT want to set
  771 # this unless you are sure it is correct for all cases.
  772 #
  773 # * It is generally better to not mark a page as
  774 # * being a certain language than marking it with the wrong
  775 # * language!
  776 #
  777 # DefaultLanguage nl
  778 #
  779 # Note 1: The suffix does not have to be the same as the language
  780 # keyword --- those with documents in Polish (whose net-standard
  781 # language code is pl) may wish to use "AddLanguage pl .po" to
  782 # avoid the ambiguity with the common suffix for perl scripts.
  783 #
  784 # Note 2: The example entries below illustrate that in some cases
  785 # the two character 'Language' abbreviation is not identical to
  786 # the two character 'Country' code for its country,
  787 # E.g. 'Danmark/dk' versus 'Danish/da'.
  788 #
  789 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  790 # specifier. There is 'work in progress' to fix this and get
  791 # the reference data for rfc1766 cleaned up.
  792 #
  793 # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  794 # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  795 # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  796 # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  797 # Norwegian (no) - Polish (pl) - Portugese (pt)
  798 # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  799 # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  800 #
  801 AddLanguage ca .ca
  802 AddLanguage cs .cz .cs
  803 AddLanguage da .dk
  804 AddLanguage de .de
  805 AddLanguage el .el
  806 AddLanguage en .en
  807 AddLanguage eo .eo
  808 AddLanguage es .es
  809 AddLanguage et .et
  810 AddLanguage fr .fr
  811 AddLanguage he .he
  812 AddLanguage hr .hr
  813 AddLanguage it .it
  814 AddLanguage ja .ja
  815 AddLanguage ko .ko
  816 AddLanguage ltz .ltz
  817 AddLanguage nl .nl
  818 AddLanguage nn .nn
  819 AddLanguage no .no
  820 AddLanguage pl .po
  821 AddLanguage pt .pt
  822 AddLanguage pt-BR .pt-br
  823 AddLanguage ru .ru
  824 AddLanguage sv .sv
  825 AddLanguage zh-CN .zh-cn
  826 AddLanguage zh-TW .zh-tw
  827 
  828 #
  829 # LanguagePriority allows you to give precedence to some languages
  830 # in case of a tie during content negotiation.
  831 #
  832 # Just list the languages in decreasing order of preference. We have
  833 # more or less alphabetized them here. You probably want to change this.
  834 #
  835 LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
  836 
  837 #
  838 # ForceLanguagePriority allows you to serve a result page rather than
  839 # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  840 # [in case no accepted languages matched the available variants]
  841 #
  842 ForceLanguagePriority Prefer Fallback
  843 
  844 #
  845 # Commonly used filename extensions to character sets. You probably
  846 # want to avoid clashes with the language extensions, unless you
  847 # are good at carefully testing your setup after each change.
  848 # See http://www.iana.org/assignments/character-sets for the
  849 # official list of charset names and their respective RFCs.
  850 #
  851 AddCharset ISO-8859-1  .iso8859-1  .latin1
  852 AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
  853 AddCharset ISO-8859-3  .iso8859-3  .latin3
  854 AddCharset ISO-8859-4  .iso8859-4  .latin4
  855 AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
  856 AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
  857 AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
  858 AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
  859 AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
  860 AddCharset ISO-2022-JP .iso2022-jp .jis
  861 AddCharset ISO-2022-KR .iso2022-kr .kis
  862 AddCharset ISO-2022-CN .iso2022-cn .cis
  863 AddCharset Big5        .Big5       .big5
  864 # For russian, more than one charset is used (depends on client, mostly):
  865 AddCharset WINDOWS-1251 .cp-1251   .win-1251
  866 AddCharset CP866       .cp866
  867 AddCharset KOI8-r      .koi8-r .koi8-ru
  868 AddCharset KOI8-ru     .koi8-uk .ua
  869 AddCharset ISO-10646-UCS-2 .ucs2
  870 AddCharset ISO-10646-UCS-4 .ucs4
  871 AddCharset UTF-8       .utf8
  872 
  873 # The set below does not map to a specific (iso) standard
  874 # but works on a fairly wide range of browsers. Note that
  875 # capitalization actually matters (it should not, but it
  876 # does for some browsers).
  877 #
  878 # See http://www.iana.org/assignments/character-sets
  879 # for a list of sorts. But browsers support few.
  880 #
  881 AddCharset GB2312      .gb2312 .gb
  882 AddCharset utf-7       .utf7
  883 AddCharset utf-8       .utf8
  884 AddCharset big5        .big5 .b5
  885 AddCharset EUC-TW      .euc-tw
  886 AddCharset EUC-JP      .euc-jp
  887 AddCharset EUC-KR      .euc-kr
  888 AddCharset shift_jis   .sjis
  889 
  890 #
  891 # AddType allows you to add to or override the MIME configuration
  892 # file mime.types for specific file types.
  893 #
  894 #AddType application/x-tar .tgz
  895 #
  896 # AddEncoding allows you to have certain browsers uncompress
  897 # information on the fly. Note: Not all browsers support this.
  898 # Despite the name similarity, the following Add* directives have nothing
  899 # to do with the FancyIndexing customization directives above.
  900 #
  901 #AddEncoding x-compress .Z
  902 #AddEncoding x-gzip .gz .tgz
  903 #
  904 # If the AddEncoding directives above are commented-out, then you
  905 # probably should define those extensions to indicate media types:
  906 #
  907 AddType application/x-compress .Z
  908 AddType application/x-gzip .gz .tgz
  909 
  910 #
  911 # AddHandler allows you to map certain file extensions to "handlers":
  912 # actions unrelated to filetype. These can be either built into the server
  913 # or added with the Action directive (see below)
  914 #
  915 # To use CGI scripts outside of ScriptAliased directories:
  916 # (You will also need to add "ExecCGI" to the "Options" directive.)
  917 #
  918 #AddHandler cgi-script .cgi
  919 
  920 #
  921 # For files that include their own HTTP headers:
  922 #
  923 #AddHandler send-as-is asis
  924 
  925 #
  926 # For server-parsed imagemap files:
  927 #
  928 #AddHandler imap-file map
  929 
  930 #
  931 # For type maps (negotiated resources):
  932 # (This is enabled by default to allow the Apache "It Worked" page
  933 #  to be distributed in multiple languages.)
  934 #
  935 AddHandler type-map var
  936 
  937 #
  938 # Filters allow you to process content before it is sent to the client.
  939 #
  940 # To parse .shtml files for server-side includes (SSI):
  941 # (You will also need to add "Includes" to the "Options" directive.)
  942 #
  943 #AddType text/html .shtml
  944 #AddOutputFilter INCLUDES .shtml
  945 
  946 #
  947 # Action lets you define media types that will execute a script whenever
  948 # a matching file is called. This eliminates the need for repeated URL
  949 # pathnames for oft-used CGI file processors.
  950 # Format: Action media/type /cgi-script/location
  951 # Format: Action handler-name /cgi-script/location
  952 #
  953 
  954 #
  955 # Customizable error responses come in three flavors:
  956 # 1) plain text 2) local redirects 3) external redirects
  957 #
  958 # Some examples:
  959 #ErrorDocument 500 "The server made a boo boo."
  960 #ErrorDocument 404 /missing.html
  961 #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  962 #ErrorDocument 402 http://www.example.com/subscription_info.html
  963 #
  964 
  965 #
  966 # Putting this all together, we can internationalize error responses.
  967 #
  968 # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  969 # our collection of by-error message multi-language collections.  We use
  970 # includes to substitute the appropriate text.
  971 #
  972 # You can modify the messages' appearance without changing any of the
  973 # default HTTP_<error>.html.var files by adding the line:
  974 #
  975 #   Alias /error/include/ "/your/include/path/"
  976 #
  977 # which allows you to create your own set of files by starting with the
  978 # /usr/local/apache2/error/include/ files and copying them to /your/include/path/,
  979 # even on a per-VirtualHost basis.  The default include files will display
  980 # your Apache version number and your ServerAdmin email address regardless
  981 # of the setting of ServerSignature.
  982 #
  983 # The internationalized error documents require mod_alias, mod_include
  984 # and mod_negotiation.  To activate them, uncomment the following 30 lines.
  985 
  986 #    Alias /error/ "/usr/local/apache2/error/"
  987 #
  988 #    <Directory "/usr/local/apache2/error">
  989 #        AllowOverride None
  990 #        Options IncludesNoExec
  991 #        AddOutputFilter Includes html
  992 #        AddHandler type-map var
  993 #        Order allow,deny
  994 #        Allow from all
  995 #        LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
  996 #        ForceLanguagePriority Prefer Fallback
  997 #    </Directory>
  998 #
  999 #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
 1000 #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
 1001 #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
 1002 #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
 1003 #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
 1004 #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
 1005 #    ErrorDocument 410 /error/HTTP_GONE.html.var
 1006 #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
 1007 #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
 1008 #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
 1009 #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
 1010 #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
 1011 #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
 1012 #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
 1013 #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
 1014 #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
 1015 #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
 1016 
 1017 
 1018 #
 1019 # The following directives modify normal HTTP response behavior to
 1020 # handle known problems with browser implementations.
 1021 #
 1022 BrowserMatch "Mozilla/2" nokeepalive
 1023 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
 1024 BrowserMatch "RealPlayer 4\.0" force-response-1.0
 1025 BrowserMatch "Java/1\.0" force-response-1.0
 1026 BrowserMatch "JDK/1\.0" force-response-1.0
 1027 
 1028 #
 1029 # The following directive disables redirects on non-GET requests for
 1030 # a directory that does not include the trailing slash.  This fixes a
 1031 # problem with Microsoft WebFolders which does not appropriately handle
 1032 # redirects for folders with DAV methods.
 1033 # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
 1034 #
 1035 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
 1036 BrowserMatch "MS FrontPage" redirect-carefully
 1037 BrowserMatch "^WebDrive" redirect-carefully
 1038 BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
 1039 BrowserMatch "^gnome-vfs" redirect-carefully
 1040 BrowserMatch "^XML Spy" redirect-carefully
 1041 BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
 1042 
 1043 #
 1044 # Allow server status reports generated by mod_status,
 1045 # with the URL of http://servername/server-status
 1046 # Change the ".example.com" to match your domain to enable.
 1047 #
 1048 <Location /server-status>
 1049     SetHandler server-status
 1050     Order deny,allow
 1051     Deny from all
 1052     Allow from localhost
 1053 </Location>
 1054 
 1055 #
 1056 # Allow remote server configuration reports, with the URL of
 1057 #  http://servername/server-info (requires that mod_info.c be loaded).
 1058 # Change the ".example.com" to match your domain to enable.
 1059 #
 1060 <Location /server-info>
 1061     SetHandler server-info
 1062     Order deny,allow
 1063     Deny from all
 1064     Allow from localhost
 1065 </Location>
 1066 
 1067 #ww# add mod_perl status handler
 1068 <Location /perl-status>
 1069     SetHandler perl-script
 1070     PerlResponseHandler Apache2::Status
 1071     PerlSetVar StatusOptionsAll On
 1072     Order deny,allow
 1073     Deny from all
 1074     Allow from localhost
 1075 </Location>
 1076 
 1077 #
 1078 # Bring in additional module-specific configurations
 1079 #
 1080 <IfModule mod_ssl.c>
 1081     #ww# not bothering with this file
 1082     #Include conf/devel-site-ssl.apache2-config
 1083 
 1084     SSLRandomSeed startup builtin
 1085     SSLRandomSeed connect builtin
 1086 
 1087     AddType application/x-x509-ca-cert .crt
 1088     AddType application/x-pkcs7-crl    .crl
 1089 
 1090     SSLPassPhraseDialog  builtin
 1091 
 1092     SSLSessionCache         dbm:run/ssl_scache2
 1093     SSLSessionCacheTimeout  300
 1094     SSLMutex  file:run/ssl_mutex2
 1095 
 1096     SSLEngine On
 1097     SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
 1098     SSLCertificateFile /usr/local/etc/apache/ssl.crt/server.crt
 1099     SSLCertificateKeyFile /usr/local/etc/apache/ssl.key/server.key
 1100 </IfModule>
 1101 
 1102 ### Section 3: Virtual Hosts
 1103 #
 1104 # VirtualHost: If you want to maintain multiple domains/hostnames on your
 1105 # machine you can setup VirtualHost containers for them. Most configurations
 1106 # use only name-based virtual hosts so the server doesn't need to worry about
 1107 # IP addresses. This is indicated by the asterisks in the directives below.
 1108 #
 1109 # Please see the documentation at
 1110 # <URL:http://httpd.apache.org/docs/2.0/vhosts/>
 1111 # for further details before you try to setup virtual hosts.
 1112 #
 1113 # You may use the command line option '-S' to verify your virtual host
 1114 # configuration.
 1115 
 1116 #
 1117 # Use name-based virtual hosting.
 1118 #
 1119 #NameVirtualHost *:80
 1120 
 1121 #
 1122 # VirtualHost example:
 1123 # Almost any Apache directive may go into a VirtualHost container.
 1124 # The first VirtualHost section is used for requests without a known
 1125 # server name.
 1126 #
 1127 #<VirtualHost *:80>
 1128 #    ServerAdmin webmaster@dummy-host.example.com
 1129 #    DocumentRoot /www/docs/dummy-host.example.com
 1130 #    ServerName dummy-host.example.com
 1131 #    ErrorLog logs/dummy-host.example.com-error_log
 1132 #    CustomLog logs/dummy-host.example.com-access_log common
 1133 #</VirtualHost>

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9