[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/pkg/apache/conf/ -> win_httpd.conf (source)

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


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1