Home | History | Annotate | Download | only in httpd_config
      1 ## httpd2.conf -- Apache 2.x HTTP server configuration file
      2 
      3 #
      4 # Listen: Allows you to bind Apache to specific IP addresses and/or
      5 # ports, instead of the default. See also the <VirtualHost>
      6 # directive.
      7 #
      8 Listen 127.0.0.1:8000
      9 Listen 127.0.0.1:8080
     10 Listen 127.0.0.1:8081
     11 Listen 127.0.0.1:8443
     12 Listen 127.0.0.1:9000
     13 Listen 127.0.0.1:9080
     14 Listen 127.0.0.1:9443
     15 
     16 #
     17 # Dynamic Shared Object (DSO) Support
     18 #
     19 # To be able to use the functionality of a module which was built as a DSO you
     20 # have to place corresponding `LoadModule' lines at this location so the
     21 # directives contained in it are actually available _before_ they are used.
     22 # Please read the file http://httpd.apache.org/docs/dso.html for more
     23 # details about the DSO mechanism and run `httpd -l' for the list of already
     24 # built-in (statically linked and thus always available) modules in your httpd
     25 # binary.
     26 #
     27 # Note: The order in which modules are loaded is important.  Don't change
     28 # the order below without expert advice.
     29 #
     30 #LoadModule authn_file_module lib/apache2/mod_authn_file.so
     31 #LoadModule authn_dbm_module lib/apache2/mod_authn_dbm.so
     32 #LoadModule authn_anon_module lib/apache2/mod_authn_anon.so
     33 #LoadModule authn_dbd_module lib/apache2/mod_authn_dbd.so
     34 #LoadModule authn_default_module lib/apache2/mod_authn_default.so
     35 LoadModule authz_host_module lib/apache2/mod_authz_host.so
     36 #LoadModule authz_groupfile_module lib/apache2/mod_authz_groupfile.so
     37 #LoadModule authz_user_module lib/apache2/mod_authz_user.so
     38 #LoadModule authz_dbm_module lib/apache2/mod_authz_dbm.so
     39 #LoadModule authz_owner_module lib/apache2/mod_authz_owner.so
     40 #LoadModule authz_default_module lib/apache2/mod_authz_default.so
     41 #LoadModule auth_basic_module lib/apache2/mod_auth_basic.so
     42 #LoadModule auth_digest_module lib/apache2/mod_auth_digest.so
     43 #LoadModule dbd_module lib/apache2/mod_dbd.so
     44 #LoadModule dumpio_module lib/apache2/mod_dumpio.so
     45 #LoadModule ext_filter_module lib/apache2/mod_ext_filter.so
     46 LoadModule include_module lib/apache2/mod_include.so
     47 #LoadModule filter_module lib/apache2/mod_filter.so
     48 #LoadModule deflate_module lib/apache2/mod_deflate.so
     49 LoadModule log_config_module lib/apache2/mod_log_config.so
     50 #LoadModule log_forensic_module lib/apache2/mod_log_forensic.so
     51 #LoadModule logio_module lib/apache2/mod_logio.so
     52 #LoadModule env_module lib/apache2/mod_env.so
     53 #LoadModule mime_magic_module lib/apache2/mod_mime_magic.so
     54 #LoadModule cern_meta_module lib/apache2/mod_cern_meta.so
     55 #LoadModule expires_module lib/apache2/mod_expires.so
     56 LoadModule headers_module lib/apache2/mod_headers.so
     57 #LoadModule ident_module lib/apache2/mod_ident.so
     58 #LoadModule usertrack_module lib/apache2/mod_usertrack.so
     59 #LoadModule unique_id_module lib/apache2/mod_unique_id.so
     60 #LoadModule setenvif_module lib/apache2/mod_setenvif.so
     61 #LoadModule version_module lib/apache2/mod_version.so
     62 #LoadModule proxy_module lib/apache2/mod_proxy.so
     63 #LoadModule proxy_connect_module lib/apache2/mod_proxy_connect.so
     64 #LoadModule proxy_ftp_module lib/apache2/mod_proxy_ftp.so
     65 #LoadModule proxy_http_module lib/apache2/mod_proxy_http.so
     66 #LoadModule proxy_ajp_module lib/apache2/mod_proxy_ajp.so
     67 #LoadModule proxy_balancer_module lib/apache2/mod_proxy_balancer.so
     68 LoadModule ssl_module lib/apache2/mod_ssl.so
     69 LoadModule mime_module lib/apache2/mod_mime.so
     70 #LoadModule dav_module lib/apache2/mod_dav.so
     71 #LoadModule status_module lib/apache2/mod_status.so
     72 LoadModule autoindex_module lib/apache2/mod_autoindex.so
     73 LoadModule asis_module lib/apache2/mod_asis.so
     74 #LoadModule info_module lib/apache2/mod_info.so
     75 LoadModule cgi_module lib/apache2/mod_cgi.so
     76 #LoadModule dav_fs_module lib/apache2/mod_dav_fs.so
     77 #LoadModule vhost_alias_module lib/apache2/mod_vhost_alias.so
     78 LoadModule negotiation_module lib/apache2/mod_negotiation.so
     79 #LoadModule dir_module lib/apache2/mod_dir.so
     80 LoadModule imagemap_module lib/apache2/mod_imagemap.so
     81 LoadModule actions_module lib/apache2/mod_actions.so
     82 #LoadModule speling_module lib/apache2/mod_speling.so
     83 #LoadModule userdir_module lib/apache2/mod_userdir.so
     84 LoadModule alias_module lib/apache2/mod_alias.so
     85 LoadModule rewrite_module lib/apache2/mod_rewrite.so
     86 LoadModule php5_module lib/apache2/cygphp5.so
     87 
     88 #LoadModule imap_module          lib/apache/mod_imap.dll
     89 #LoadModule access_module        lib/apache/mod_access.dll
     90 #LoadModule auth_module          lib/apache/mod_auth.dll
     91 
     92 
     93 #
     94 # Each directory to which Apache has access, can be configured with respect
     95 # to which services and features are allowed and/or disabled in that
     96 # directory (and its subdirectories). 
     97 #
     98 <Directory />
     99     Options Indexes FollowSymLinks MultiViews ExecCGI Includes
    100     AllowOverride All
    101     Order allow,deny
    102     Allow from all
    103 </Directory>
    104 
    105 
    106 #
    107 # Apple specific filesystem protection.
    108 # 
    109 <Files "rsrc">
    110     Order allow,deny
    111     Deny from all
    112     Satisfy All
    113 </Files>
    114 <Directory  ~ ".*\.\.namedfork">
    115     Order allow,deny
    116     Deny from all
    117     Satisfy All
    118 </Directory>
    119 
    120 
    121 #
    122 # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
    123 # Apache needs to construct a self-referencing URL (a URL that refers back
    124 # to the server the response is coming from) it will use ServerName and
    125 # Port to form a "canonical" name.  With this setting off, Apache will
    126 # use the hostname:port that the client supplied, when possible.  This
    127 # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
    128 #
    129 UseCanonicalName On
    130 
    131 
    132 #
    133 # The following directives define some format nicknames for use with
    134 # a CustomLog directive (see below).
    135 #
    136 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    137 LogFormat "%h %l %u %t \"%r\" %>s %b" common
    138 LogFormat "%{Referer}i -> %U" referer
    139 LogFormat "%{User-agent}i" agent
    140 
    141 
    142 #
    143 # Optionally add a line containing the server version and virtual host
    144 # name to server-generated pages (error documents, FTP directory listings,
    145 # mod_status and mod_info output etc., but not CGI generated documents).
    146 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
    147 # Set to one of:  On | Off | EMail
    148 #
    149 ServerSignature On
    150 
    151 
    152 #
    153 # Document types.
    154 #
    155 <IfModule mime_module>
    156 
    157     #
    158     # AddLanguage allows you to specify the language of a document. You can
    159     # then use content negotiation to give a browser a file in a language
    160     # it can understand.  
    161     #
    162     # Note 1: The suffix does not have to be the same as the language 
    163     # keyword --- those with documents in Polish (whose net-standard 
    164     # language code is pl) may wish to use "AddLanguage pl .po" to 
    165     # avoid the ambiguity with the common suffix for perl scripts.
    166     #
    167     # Note 2: The example entries below illustrate that in quite
    168     # some cases the two character 'Language' abbreviation is not
    169     # identical to the two character 'Country' code for its country,
    170     # E.g. 'Danmark/dk' versus 'Danish/da'.
    171     #
    172     # Note 3: In the case of 'ltz' we violate the RFC by using a three char 
    173     # specifier. But there is 'work in progress' to fix this and get 
    174     # the reference data for rfc1766 cleaned up.
    175     #
    176     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
    177     # French (fr) - German (de) - Greek-Modern (el)
    178     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
    179     # Portugese (pt) - Luxembourgeois* (ltz)
    180     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
    181     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
    182     # Russian (ru)
    183     #
    184     AddLanguage da .dk
    185     AddLanguage nl .nl
    186     AddLanguage en .en
    187     AddLanguage et .ee
    188     AddLanguage fr .fr
    189     AddLanguage de .de
    190     AddLanguage el .el
    191     AddLanguage he .he
    192     AddCharset ISO-8859-8 .iso8859-8
    193     AddLanguage it .it
    194     AddLanguage ja .ja
    195     AddCharset ISO-2022-JP .jis
    196     AddLanguage kr .kr
    197     AddCharset ISO-2022-KR .iso-kr
    198     AddLanguage nn .nn
    199     AddLanguage no .no
    200     AddLanguage pl .po
    201     AddCharset ISO-8859-2 .iso-pl
    202     AddLanguage pt .pt
    203     AddLanguage pt-br .pt-br
    204     AddLanguage ltz .lu
    205     AddLanguage ca .ca
    206     AddLanguage es .es
    207     AddLanguage sv .sv
    208     AddLanguage cs .cz .cs
    209     AddLanguage ru .ru
    210     AddLanguage zh-TW .zh-tw
    211     AddCharset Big5         .Big5    .big5
    212     AddCharset WINDOWS-1251 .cp-1251
    213     AddCharset CP866        .cp866
    214     AddCharset ISO-8859-5   .iso-ru
    215     AddCharset KOI8-R       .koi8-r
    216     AddCharset UCS-2        .ucs2
    217     AddCharset UCS-4        .ucs4
    218     AddCharset UTF-8        .utf8
    219 
    220     # LanguagePriority allows you to give precedence to some languages
    221     # in case of a tie during content negotiation.
    222     #
    223     # Just list the languages in decreasing order of preference. We have
    224     # more or less alphabetized them here. You probably want to change this.
    225     #
    226     <IfModule negotiation_module>
    227         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    228     </IfModule>
    229 
    230     #
    231     # AddType allows you to tweak mime.types without actually editing it, or to
    232     # make certain files to be certain types.
    233     #
    234     AddType application/x-tar .tgz
    235 
    236     #
    237     # AddEncoding allows you to have certain browsers uncompress
    238     # information on the fly. Note: Not all browsers support this.
    239     # Despite the name similarity, the following Add* directives have nothing
    240     # to do with the FancyIndexing customization directives above.
    241     #
    242     AddEncoding x-compress .Z
    243     AddEncoding x-gzip .gz .tgz
    244 
    245     #
    246     # AddHandler allows you to map certain file extensions to "handlers",
    247     # actions unrelated to filetype. These can be either built into the server
    248     # or added with the Action command (see below)
    249     #
    250     # If you want to use server side includes, or CGI outside
    251     # ScriptAliased directories, uncomment the following lines.
    252     #
    253     # To use CGI scripts:
    254     #
    255     AddHandler cgi-script .cgi .pl
    256 
    257     #
    258     # To use server-parsed HTML files
    259     #
    260     AddType text/html .shtml
    261     AddHandler server-parsed .shtml
    262 
    263     #
    264     # Uncomment the following line to enable Apache's send-asis HTTP file
    265     # feature
    266     #
    267     AddHandler send-as-is asis
    268 </IfModule>
    269 
    270 
    271 <IfModule php5_module>
    272     AddType application/x-httpd-php .php
    273     AddType application/x-httpd-php-source .phps
    274 </IfModule>
    275 
    276 <IfModule rewrite_module>
    277     RewriteEngine On
    278     RewriteCond %{REQUEST_METHOD} ^TRACE
    279     RewriteRule .* - [F]
    280 </IfModule>
    281