[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/etc/apache2se/ -> apache2.conf (source)

   1  # Based upon the NCSA server configuration files originally by Rob McCool.
   2  # Changed extensively for the Debian package by Daniel Stone <daniel@sfarc.net>
   3  # and also by Thom May <thom@debian.org>.
   4  
   5  # ServerRoot: The top of the directory tree under which the server's
   6  # configuration, error, and log files are kept.
   7  #
   8  # NOTE!  If you intend to place this on an NFS (or otherwise network)
   9  # mounted filesystem then please read the LockFile documentation
  10  # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
  11  # you will save yourself a lot of trouble.
  12  
  13  ServerRoot "/etc/apache2se"
  14  
  15  # The LockFile directive sets the path to the lockfile used when Apache
  16  # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
  17  # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
  18  # its default value. The main reason for changing it is if the logs
  19  # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
  20  # DISK. The PID of the main server process is automatically appended to
  21  # the filename. 
  22  
  23  LockFile /var/lock/apache2se/accept.lock
  24  
  25  # PidFile: The file in which the server should record its process
  26  # identification number when it starts.
  27  
  28  PidFile /var/run/apache2se.pid
  29  
  30  # Timeout: The number of seconds before receives and sends time out.
  31  
  32  Timeout 300
  33  
  34  # KeepAlive: Whether or not to allow persistent connections (more than
  35  # one request per connection). Set to "Off" to deactivate.
  36  
  37  KeepAlive On
  38  
  39  # MaxKeepAliveRequests: The maximum number of requests to allow
  40  # during a persistent connection. Set to 0 to allow an unlimited amount.
  41  # We recommend you leave this number high, for maximum performance.
  42  
  43  MaxKeepAliveRequests 100
  44  
  45  # KeepAliveTimeout: Number of seconds to wait for the next request from the
  46  # same client on the same connection.
  47  
  48  KeepAliveTimeout 15
  49  
  50  ##
  51  ## Server-Pool Size Regulation (MPM specific)
  52  ## 
  53  
  54  # prefork MPM
  55  # StartServers ......... number of server processes to start
  56  # MinSpareServers ...... minimum number of server processes which are kept spare
  57  # MaxSpareServers ...... maximum number of server processes which are kept spare
  58  # MaxClients ........... maximum number of server processes allowed to start
  59  # MaxRequestsPerChild .. maximum number of requests a server process serves
  60  <IfModule prefork.c>
  61  StartServers         5
  62  MinSpareServers      5
  63  MaxSpareServers     10
  64  MaxClients          20
  65  MaxRequestsPerChild  0
  66  </IfModule>
  67  
  68  # pthread MPM
  69  # StartServers ......... initial  number of server processes to start
  70  # MaxClients ........... maximum  number of server processes allowed to start
  71  # MinSpareThreads ...... minimum  number of worker threads which are kept spare
  72  # MaxSpareThreads ...... maximum  number of worker threads which are kept spare
  73  # ThreadsPerChild ...... constant number of worker threads in each server process
  74  # MaxRequestsPerChild .. maximum  number of requests a server process serves
  75  <IfModule worker.c>
  76  StartServers         2
  77  MaxClients         150 
  78  MinSpareThreads     25
  79  MaxSpareThreads     75
  80  ThreadsPerChild     25
  81  MaxRequestsPerChild  0
  82  </IfModule>
  83  
  84  # perchild MPM
  85  # NumServers ........... constant number of server processes
  86  # StartThreads ......... initial  number of worker threads in each server process
  87  # MinSpareThreads ...... minimum  number of worker threads which are kept spare
  88  # MaxSpareThreads ...... maximum  number of worker threads which are kept spare
  89  # MaxThreadsPerChild ... maximum  number of worker threads in each server process
  90  # MaxRequestsPerChild .. maximum  number of connections per server process (then it dies)
  91  <IfModule perchild.c>
  92  NumServers           5
  93  StartThreads         5
  94  MinSpareThreads      5
  95  MaxSpareThreads     10
  96  MaxThreadsPerChild  20
  97  MaxRequestsPerChild  0
  98  AcceptMutex fcntl
  99  </IfModule>
 100  
 101  User www-se3
 102  Group www-data
 103  
 104  # The following directives define some format nicknames for use with
 105  # a CustomLog directive (see below).
 106  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 107  LogFormat "%h %l %u %t \"%r\" %>s %b" common
 108  LogFormat "%{Referer}i -> %U" referer
 109  LogFormat "%{User-agent}i" agent
 110  
 111  
 112  # Global error log.
 113  ErrorLog /var/log/apache2se/errorse.log
 114  
 115  # Include module configuration:
 116  Include /etc/apache2se/mods-enabled/*.load
 117  Include /etc/apache2se/mods-enabled/*.conf
 118  
 119  # Include all the user configurations:
 120  Include /etc/apache2se/httpd.conf
 121  
 122  # Include ports listing
 123  Include /etc/apache2se/ports.conf
 124  
 125  # Include generic snippets of statements
 126  Include /etc/apache2se/conf.d/[^.#]*
 127  
 128  # Set up the default error docs.
 129  #
 130  # Customizable error responses come in three flavors:
 131  # 1) plain text 2) local redirects 3) external redirects
 132  #
 133  # Some examples:
 134  #ErrorDocument 500 "The server made a boo boo."
 135  #ErrorDocument 404 /missing.html
 136  #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
 137  #ErrorDocument 402 http://www.example.com/subscription_info.html
 138  #
 139  
 140  #
 141  # Putting this all together, we can Internationalize error responses.
 142  #
 143  # We use Alias to redirect any /error/HTTP_<error>.html.var response to
 144  # our collection of by-error message multi-language collections.  We use 
 145  # includes to substitute the appropriate text.
 146  #
 147  # You can modify the messages' appearance without changing any of the
 148  # default HTTP_<error>.html.var files by adding the line;
 149  #
 150  #   Alias /error/include/ "/your/include/path/"
 151  #
 152  # which allows you to create your own set of files by starting with the
 153  # /usr/local/apache2/error/include/ files and
 154  # copying them to /your/include/path/, even on a per-VirtualHost basis.
 155  #
 156  
 157  <IfModule mod_negotiation.c>
 158  <IfModule mod_include.c>
 159      Alias /error/ "/usr/share/apache2/error/"
 160  
 161      <Directory "/usr/share/apache2/error">
 162          AllowOverride None
 163          Options IncludesNoExec
 164          AddOutputFilter Includes html
 165          AddHandler type-map var
 166          Order allow,deny
 167          Allow from all
 168          LanguagePriority en es de fr
 169          ForceLanguagePriority Prefer Fallback
 170      </Directory>
 171  
 172      ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
 173      ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
 174      ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
 175      ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
 176      ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
 177      ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
 178      ErrorDocument 410 /error/HTTP_GONE.html.var
 179      ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
 180      ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
 181      ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
 182      ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
 183      ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
 184      ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
 185      ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
 186      ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
 187      ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
 188      ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
 189  
 190  </IfModule>
 191  </IfModule>
 192  
 193  DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
 194  
 195  # UserDir is now a module
 196  #UserDir public_html
 197  #UserDir disabled root
 198  
 199  #<Directory /home/*/public_html>
 200  #    AllowOverride FileInfo AuthConfig Limit
 201  #    Options Indexes SymLinksIfOwnerMatch IncludesNoExec
 202  #</Directory>
 203  
 204  AccessFileName .htaccess
 205  
 206  <Files ~ "^\.ht">
 207      Order allow,deny
 208      Deny from all
 209  </Files>
 210  
 211  UseCanonicalName Off
 212  
 213  TypesConfig /etc/mime.types
 214  DefaultType text/plain
 215  
 216  HostnameLookups Off
 217  
 218  IndexOptions FancyIndexing VersionSort
 219  
 220  AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
 221  
 222  AddIconByType (TXT,/icons/text.gif) text/*
 223  AddIconByType (IMG,/icons/image2.gif) image/*
 224  AddIconByType (SND,/icons/sound2.gif) audio/*
 225  AddIconByType (VID,/icons/movie.gif) video/*
 226  
 227  # This really should be .jpg.
 228  
 229  AddIcon /icons/binary.gif .bin .exe
 230  AddIcon /icons/binhex.gif .hqx
 231  AddIcon /icons/tar.gif .tar
 232  AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
 233  AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
 234  AddIcon /icons/a.gif .ps .ai .eps
 235  AddIcon /icons/layout.gif .html .shtml .htm .pdf
 236  AddIcon /icons/text.gif .txt
 237  AddIcon /icons/c.gif .c
 238  AddIcon /icons/p.gif .pl .py
 239  AddIcon /icons/f.gif .for
 240  AddIcon /icons/dvi.gif .dvi
 241  AddIcon /icons/uuencoded.gif .uu
 242  AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
 243  AddIcon /icons/tex.gif .tex
 244  AddIcon /icons/bomb.gif core
 245  
 246  AddIcon /icons/back.gif ..
 247  AddIcon /icons/hand.right.gif README
 248  AddIcon /icons/folder.gif ^^DIRECTORY^^
 249  AddIcon /icons/blank.gif ^^BLANKICON^^
 250  
 251  
 252  # This is from Matty J's patch. Anyone want to make the icons?
 253  #AddIcon /icons/dirsymlink.jpg ^^SYMDIR^^
 254  #AddIcon /icons/symlink.jpg ^^SYMLINK^^
 255  
 256  DefaultIcon /icons/unknown.gif
 257  
 258  ReadmeName README.html
 259  HeaderName HEADER.html
 260  
 261  IndexIgnore .??* *~ *# HEADER* RCS CVS *,t
 262  
 263  AddEncoding x-compress Z
 264  AddEncoding x-gzip gz tgz
 265  
 266  AddLanguage da .dk
 267  AddLanguage nl .nl
 268  AddLanguage en .en
 269  AddLanguage et .et
 270  AddLanguage fr .fr
 271  AddLanguage de .de
 272  AddLanguage el .el
 273  AddLanguage it .it
 274  AddLanguage ja .ja
 275  AddLanguage pl .po
 276  AddLanguage ko .ko
 277  AddLanguage pt .pt
 278  AddLanguage no .no
 279  AddLanguage pt-br .pt-br
 280  AddLanguage ltz .ltz
 281  AddLanguage ca .ca
 282  AddLanguage es .es
 283  AddLanguage sv .se
 284  AddLanguage cz .cz
 285  AddLanguage ru .ru
 286  AddLanguage tw .tw
 287  AddLanguage zh-tw .tw
 288  
 289  LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
 290  
 291  
 292  AddDefaultCharset    ISO-8859-1
 293  
 294  AddCharset ISO-8859-1  .iso8859-1  .latin1
 295  AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
 296  AddCharset ISO-8859-3  .iso8859-3  .latin3
 297  AddCharset ISO-8859-4  .iso8859-4  .latin4
 298  AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
 299  AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
 300  AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
 301  AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb    
 302  AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
 303  AddCharset ISO-2022-JP .iso2022-jp .jis
 304  AddCharset ISO-2022-KR .iso2022-kr .kis
 305  AddCharset ISO-2022-CN .iso2022-cn .cis
 306  AddCharset Big5        .Big5       .big5
 307  # For russian, more than one charset is used (depends on client, mostly):
 308  AddCharset WINDOWS-1251 .cp-1251   .win-1251
 309  AddCharset CP866       .cp866
 310  AddCharset KOI8-r      .koi8-r .koi8-ru
 311  AddCharset KOI8-ru     .koi8-uk .ua
 312  AddCharset ISO-10646-UCS-2 .ucs2
 313  AddCharset ISO-10646-UCS-4 .ucs4
 314  AddCharset UTF-8       .utf8
 315  
 316  AddCharset GB2312      .gb2312 .gb 
 317  AddCharset utf-7       .utf7
 318  AddCharset utf-8       .utf8
 319  AddCharset big5           .big5 .b5
 320  AddCharset EUC-TW      .euc-tw    
 321  AddCharset EUC-JP      .euc-jp
 322  AddCharset EUC-KR      .euc-kr
 323  AddCharset shift_jis   .sjis
 324  
 325  AddType application/x-httpd-php .php
 326  AddType application/x-httpd-php-source .phps
 327  
 328  AddType application/x-tar .tgz
 329  
 330  # To use CGI scripts outside /cgi-bin/:
 331  #
 332  #AddHandler cgi-script .cgi
 333  
 334  # To use server-parsed HTML files
 335  #
 336  <FilesMatch "\.shtml(\..+)?$">
 337      SetOutputFilter INCLUDES
 338  </FilesMatch>
 339  
 340  # If you wish to use server-parsed imagemap files, use
 341  #
 342  #AddHandler imap-file map
 343  
 344  BrowserMatch "Mozilla/2" nokeepalive
 345  BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
 346  BrowserMatch "RealPlayer 4\.0" force-response-1.0
 347  BrowserMatch "Java/1\.0" force-response-1.0
 348  BrowserMatch "JDK/1\.0" force-response-1.0
 349  
 350  #
 351  # The following directive disables redirects on non-GET requests for
 352  # a directory that does not include the trailing slash.  This fixes a 
 353  # problem with Microsoft WebFolders which does not appropriately handle 
 354  # redirects for folders with DAV methods.
 355  #
 356  
 357  BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
 358  BrowserMatch "^WebDrive" redirect-carefully
 359  BrowserMatch "^gnome-vfs" redirect-carefully 
 360  BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
 361  
 362  # Allow server status reports, with the URL of http://servername/server-status
 363  # Change the ".your_domain.com" to match your domain to enable.
 364  #
 365  #<Location /server-status>
 366  #    SetHandler server-status
 367  #    Order deny,allow
 368  #    Deny from all
 369  #    Allow from .your_domain.com
 370  #</Location>
 371  
 372  # Allow remote server configuration reports, with the URL of
 373  #  http://servername/server-info (requires that mod_info.c be loaded).
 374  # Change the ".your_domain.com" to match your domain to enable.
 375  #
 376  #<Location /server-info>
 377  #    SetHandler server-info
 378  #    Order deny,allow
 379  #    Deny from all
 380  #    Allow from .your_domain.com
 381  #</Location>
 382  
 383  # Include the virtual host configurations:
 384  Include /etc/apache2se/sites-enabled/[^.#]*


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1