c:\Program Files\Apache Group\Apache2\conf\httpd.conf
2002.09.30 @san01 〜 17 までが、Apache 導入時の修正箇所です。
この内、Tomcat との連携に絡んでいるのが、@san01 , 02 , 03 です。
0001 #
0002 # Based upon the NCSA server configuration files originally by Rob McCool.
0003 #
0004 # This is the main Apache server configuration file. It contains the
0005 # configuration directives that give the server its instructions.
0006 # See <URL:http://httpd.apache.org/docs-2.0/ > for detailed information about
0007 # the directives.
0008 #
0009 # Do NOT simply read the instructions in here without understanding
0010 # what they do. They're here only as hints or reminders. If you are unsure
0011 # consult the online docs. You have been warned.
0012 #
0013 # The configuration directives are grouped into three basic sections:
0014 # 1. Directives that control the operation of the Apache server process as a
0015 # whole (the 'global environment').
0016 # 2. Directives that define the parameters of the 'main' or 'default' server,
0017 # which responds to requests that aren't handled by a virtual host.
0018 # These directives also provide default values for the settings
0019 # of all virtual hosts.
0020 # 3. Settings for virtual hosts, which allow Web requests to be sent to
0021 # different IP addresses or hostnames and have them handled by the
0022 # same Apache server process.
0023 #
0024 # Configuration and logfile names: If the filenames you specify for many
0025 # of the server's control files begin with "/" (or "drive:/" for Win32), the
0026 # server will use that explicit path. If the filenames do *not* begin
0027 # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
0028 # with ServerRoot set to "C:/Program Files/Apache Group/Apache2" will be interpreted by the0029
0030 # server as "C:/Program Files/Apache Group/Apache2/logs/foo.log".
0031 #
0032 # NOTE: Where filenames are specified, you must use forward slashes
0033 # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
0034 # If a drive letter is omitted, the drive on which Apache.exe is located
0035 # will be used by default. It is recommended that you always supply
0036 # an explicit drive letter in absolute paths, however, to avoid
0037 # confusion.
0038 #
0039
0040 ### Section 1: Global Environment
0041 #
0042 # The directives in this section affect the overall operation of Apache,
0043 # such as the number of concurrent requests it can handle or where it
0044 # can find its configuration files.
0045 #
0046
0047 #
0048 # ServerRoot: The top of the directory tree under which the server's
0049 # configuration, error, and log files are kept.
0050 #
0051 # NOTE! If you intend to place this on an NFS (or otherwise network)
0052 # mounted filesystem then please read the LockFile documentation (available
0053 # at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile >);
0054 # you will save yourself a lot of trouble.
0055 #
0056 # Do NOT add a slash at the end of the directory path.
0057 #
0058 ServerRoot "C:/Program Files/Apache Group/Apache2"
0059
0060 #
0061 # ScoreBoardFile: File used to store internal server process information.
0062 # If unspecified (the default), the scoreboard will be stored in an
0063 # anonymous shared memory segment, and will be unavailable to third-party
0064 # applications.
0065 # If specified, ensure that no two invocations of Apache share the same
0066 # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
0067 #
0068 #ScoreBoardFile logs/apache_runtime_status
0069
0070 #
0071 # PidFile: The file in which the server should record its process
0072 # identification number when it starts.
0073 #
0074 PidFile logs/httpd.pid
0075
0076 #
0077 # Timeout: The number of seconds before receives and sends time out.
0078 #
0079 Timeout 300
0080
0081 #
0082 # KeepAlive: Whether or not to allow persistent connections (more than
0083 # one request per connection). Set to "Off" to deactivate.
0084 #
0085 KeepAlive On
0086
0087 #
0088 # MaxKeepAliveRequests: The maximum number of requests to allow
0089 # during a persistent connection. Set to 0 to allow an unlimited amount.
0090 # We recommend you leave this number high, for maximum performance.
0091 #
0092 MaxKeepAliveRequests 100
0093
0094 #
0095 # KeepAliveTimeout: Number of seconds to wait for the next request from the
0096 # same client on the same connection.
0097 #
0098 KeepAliveTimeout 15
0099
0100 ##
0101 ## Server-Pool Size Regulation (MPM specific)
0102 ##
0103
0104 # WinNT MPM
0105 # ThreadsPerChild: constant number of worker threads in the server process
0106 # MaxRequestsPerChild: maximum number of requests a server process serves
0107 <IfModule mpm_winnt.c>
0108 ThreadsPerChild 250
0109 MaxRequestsPerChild 0
0110 </IfModule>
0111
0112 #
0113 # Listen: Allows you to bind Apache to specific IP addresses and/or
0114 # ports, in addition to the default. See also the
0115 # directive.
0116 #
0117 # Change this to Listen on specific IP addresses as shown below to
0118 # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
0119 #
0120 #Listen 12.34.56.78:80
0121
0122 # 2002.09.30 @san01 # 設定確認のみ(接続受付ポート、Listen 8080 追加可)
0123 #Listen 80
0124 Listen 80
0125
0126 #
0127 # Dynamic Shared Object (DSO) Support
0128 #
0129 # To be able to use the functionality of a module which was built as a DSO you
0130 # have to place corresponding `LoadModule' lines at this location so the
0131 # directives contained in it are actually available _before_ they are used.
0132 # Statically compiled modules (those listed by `httpd -l') do not need
0133 # to be loaded here.
0134 #
0135 # Example:
0136 # LoadModule foo_module modules/mod_foo.so
0137 #
0138 LoadModule access_module modules/mod_access.so
0139 LoadModule actions_module modules/mod_actions.so
0140 LoadModule alias_module modules/mod_alias.so
0141 LoadModule asis_module modules/mod_asis.so
0142 LoadModule auth_module modules/mod_auth.so
0143 #LoadModule auth_anon_module modules/mod_auth_anon.so
0144 #LoadModule auth_dbm_module modules/mod_auth_dbm.so
0145 #LoadModule auth_digest_module modules/mod_auth_digest.so
0146 LoadModule autoindex_module modules/mod_autoindex.so
0147 #LoadModule cern_meta_module modules/mod_cern_meta.so
0148 LoadModule cgi_module modules/mod_cgi.so
0149 #LoadModule dav_module modules/mod_dav.so
0150 #LoadModule dav_fs_module modules/mod_dav_fs.so
0151 LoadModule dir_module modules/mod_dir.so
0152 LoadModule env_module modules/mod_env.so
0153 #LoadModule expires_module modules/mod_expires.so
0154 #LoadModule file_cache_module modules/mod_file_cache.so
0155 #LoadModule headers_module modules/mod_headers.so
0156 LoadModule imap_module modules/mod_imap.so
0157 LoadModule include_module modules/mod_include.so
0158 #LoadModule info_module modules/mod_info.so
0159 LoadModule isapi_module modules/mod_isapi.so
0160 LoadModule log_config_module modules/mod_log_config.so
0161 LoadModule mime_module modules/mod_mime.so
0162 #LoadModule mime_magic_module modules/mod_mime_magic.so
0163 #LoadModule proxy_module modules/mod_proxy.so
0164 #LoadModule proxy_connect_module modules/mod_proxy_connect.so
0165 #LoadModule proxy_http_module modules/mod_proxy_http.so
0166 #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
0167 LoadModule negotiation_module modules/mod_negotiation.so
0168 #LoadModule rewrite_module modules/mod_rewrite.so
0169 LoadModule setenvif_module modules/mod_setenvif.so
0170 #LoadModule speling_module modules/mod_speling.so
0171 #LoadModule status_module modules/mod_status.so
0172 #LoadModule unique_id_module modules/mod_unique_id.so
0173 LoadModule userdir_module modules/mod_userdir.so
0174 #LoadModule usertrack_module modules/mod_usertrack.so
0175 #LoadModule vhost_alias_module modules/mod_vhost_alias.so
0176 #LoadModule ssl_module modules/mod_ssl.so
0177
0178 # @san02 2002.9.30 6 Lines add
0179
0180 LoadModule jk_module modules/mod_jk-2.0.42.dll
0181 JkWorkersFile "c:\Program Files\Apache Group\Tomcat 4.1\conf\workers.properties"
0182 JkLogFile "c:\Program Files\Apache Group\Tomcat 4.1\logs\mod_jk.log"
0183 JkLogLevel warn
0184 JkMount /*.jsp ajp13
0185 JkMount /*/servlet/ ajp13
0186
0187 #
0188 # ExtendedStatus controls whether Apache will generate "full" status
0189 # information (ExtendedStatus On) or just basic information (ExtendedStatus
0190 # Off) when the "server-status" handler is called. The default is Off.
0191 #
0192 #ExtendedStatus On
0193
0194 ### Section 2: 'Main' server configuration
0195 #
0196 # The directives in this section set up the values used by the 'main'
0197 # server, which responds to any requests that aren't handled by a
0198 # <VirtualHost> definition. These values also provide defaults for
0199 # any <VirtualHost> containers you may define later in the file.
0200 #
0201 # All of these directives may appear inside <VirtualHost> containers,
0202 # in which case these default settings will be overridden for the
0203 # virtual host being defined.
0204 #
0205
0206 #
0207 # ServerAdmin: Your address, where problems with the server should be
0208 # e-mailed. This address appears on some server-generated pages, such
0209 # as error documents. e.g. admin@your-domain.com
0210 #
0211 ServerAdmin susumu@mxv.mesh.ne.jp
0212
0213 #
0214 # ServerName gives the name and port that the server uses to identify itself.
0215 # This can often be determined automatically, but we recommend you specify
0216 # it explicitly to prevent problems during startup.
0217 #
0218 # If this is not set to valid DNS name for your host, server-generated
0219 # redirections will not work. See also the UseCanonicalName directive.
0220 #
0221 # If your host doesn't have a registered DNS name, enter its IP address here.
0222 # You will have to access it by its address anyway, and this will make
0223 # redirections work in a sensible way.
0224
0225 # 2002.09.30 @san03 #
0226 #ServerName 127.0.0.1:80
0227 ServerName 127.0.0.1:80
0228
0229 #
0230 # UseCanonicalName: Determines how Apache constructs self-referencing
0231 # URLs and the SERVER_NAME and SERVER_PORT variables.
0232 # When set "Off", Apache will use the Hostname and Port supplied
0233 # by the client. When set "On", Apache will use the value of the
0234 # ServerName directive.
0235 #
0236 UseCanonicalName Off
0237
0238 #
0239 # DocumentRoot: The directory out of which you will serve your
0240 # documents. By default, all requests are taken from this directory, but
0241 # symbolic links and aliases may be used to point to other locations.
0242
0243 # 2002.09.30 @san04 # コメントアウト & 新しく設定
0244 #DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
0245 DocumentRoot "C:/sgi/public_html"
0246
0247 #
0248 # Each directory to which Apache has access can be configured with respect
0249 # to which services and features are allowed and/or disabled in that
0250 # directory (and its subdirectories).
0251 #
0252 # First, we configure the "default" to be a very restrictive set of
0253 # features.
0254 #
0255 <Directory />
0256 Options FollowSymLinks
0257 AllowOverride None
0258 </Directory>
0259
0260 #
0261 # Note that from this point forward you must specifically allow
0262 # particular features to be enabled - so if something's not working as
0263 # you might expect, make sure that you have specifically enabled it
0264 # below.
0265 #
0266
0267 #
0268 # This should be changed to whatever you set DocumentRoot to.
0269 # 2002.09.30 @san05 # コメントアウト & 新しく設定
0270 #<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
0271 <Directory "C:/sgi/public_html">
0272
0273 #
0274 # Possible values for the Options directive are "None", "All",
0275 # or any combination of:
0276 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
0277 #
0278 # Note that "MultiViews" must be named *explicitly* --- "Options All"
0279 # doesn't give it to you.
0280 #
0281 # The Options directive is both complicated and important. Please see
0282 # http://httpd.apache.org/docs-2.0/mod/core.html#options
0283 # for more information.
0284
0285 # 2002.09.30 @san06 # コメントアウト & 新しく設定(include is SSI, ExecCGI is CGI)
0286 # Options Indexes FollowSymLinks
0287 Options Indexes FollowSymLinks MultiViews ExecCGI Includes
0288
0289 #
0290 # AllowOverride controls what directives may be placed in .htaccess files.
0291 # It can be "All", "None", or any combination of the keywords:
0292 # Options FileInfo AuthConfig Limit
0293 #
0294 AllowOverride None
0295
0296 #
0297 # Controls who can get stuff from this server.
0298 #
0299 Order allow,deny
0300 Allow from all
0301
0302 </Directory>
0303
0304 #
0305 # UserDir: The name of the directory that is appended onto a user's home
0306 # directory if a ~user request is received. Be especially careful to use
0307 # proper, forward slashes here.
0308
0309 # 2002.09.30 @san07 # コメントアウト & 新しく設定
0310 #UserDir "My Documents/My Website"
0311 UserDir "c:/sgi/*/public_html"
0312
0313 #
0314 # Control access to UserDir directories. The following is an example
0315 # for a site where these directories are restricted to read-only.
0316 #
0317 # You must correct the path for the root to match your system's configured
0318 # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
0319 # or whichever, as appropriate.
0320 #
0321 # 2002.09.30 @san08 # (start) コメントアウト & 新しく設定(複数のhome ディレクトリが可)
0322
0323 #<Directory "C:/Documents and Settings/*/My Documents/My Website">
0324 <Directory "c:/sgi/*/public_html">
0325 AllowOverride FileInfo AuthConfig Limit
0326 # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
0327 Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI Includes
0328 <Limit GET POST OPTIONS PROPFIND>
0329 Order allow,deny
0330 Allow from all
0331 </Limit>
0332 <LimitExcept GET POST OPTIONS PROPFIND>
0333 Order deny,allow
0334 Deny from all
0335 </LimitExcept>
0336 </Directory>
0337
0338 # 2002.09.30 @san08 # (end)
0339
0340 #
0341 # DirectoryIndex: sets the file that Apache will serve if a directory
0342 # is requested.
0343 #
0344 # The index.html.var file (a type-map) is used to deliver content-
0345 # negotiated documents. The MultiViews Option can be used for the
0346 # same purpose, but it is much slower.
0347
0348 DirectoryIndex index.html index.html.var
0349
0350 # 2002.09.30 @san09 # 1 Line add
0351
0352 DirectoryIndex index.htm index.htm.var
0353
0354 #
0355 # AccessFileName: The name of the file to look for in each directory
0356 # for additional configuration directives. See also the AllowOverride
0357 # directive.
0358 #
0359 AccessFileName .htaccess
0360
0361 #
0362 # The following lines prevent .htaccess and .htpasswd files from being
0363 # viewed by Web clients.
0364 #
0365 <Files ~ "^\.ht">
0366 Order allow,deny
0367 Deny from all
0368 </Files>
0369
0370 #
0371 # TypesConfig describes where the mime.types file (or equivalent) is
0372 # to be found.
0373 #
0374 TypesConfig conf/mime.types
0375
0376 #
0377 # DefaultType is the default MIME type the server will use for a document
0378 # if it cannot otherwise determine one, such as from filename extensions.
0379 # If your server contains mostly text or HTML documents, "text/plain" is
0380 # a good value. If most of your content is binary, such as applications
0381 # or images, you may want to use "application/octet-stream" instead to
0382 # keep browsers from trying to display binary files as though they are
0383 # text.
0384 #
0385 DefaultType text/plain
0386
0387 #
0388 # The mod_mime_magic module allows the server to use various hints from the
0389 # contents of the file itself to determine its type. The MIMEMagicFile
0390 # directive tells the module where the hint definitions are located.
0391 #
0392 <IfModule mod_mime_magic.c>
0393 MIMEMagicFile conf/magic
0394 </IfModule>
0395
0396 #
0397 # HostnameLookups: Log the names of clients or just their IP addresses
0398 # e.g., www.apache.org (on) or 204.62.129.132 (off).
0399 # The default is off because it'd be overall better for the net if people
0400 # had to knowingly turn this feature on, since enabling it means that
0401 # each client request will result in AT LEAST one lookup request to the
0402 # nameserver.
0403 #
0404 HostnameLookups Off
0405
0406 #
0407 # EnableMMAP: Control whether memory-mapping is used to deliver
0408 # files (assuming that the underlying OS supports it).
0409 # The default is on; turn this off if you serve from NFS-mounted
0410 # filesystems. On some systems, turning it off (regardless of
0411 # filesystem) can improve performance; for details, please see
0412 # http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
0413 #
0414 #EnableMMAP off
0415
0416 #
0417 # ErrorLog: The location of the error log file.
0418 # If you do not specify an ErrorLog directive within a <VirtualHost>
0419 # container, error messages relating to that virtual host will be
0420 # logged here. If you *do* define an error logfile for a <VirtualHost>
0421 # container, that host's errors will be logged there and not here.
0422 #
0423 ErrorLog logs/error.log
0424
0425 #
0426 # LogLevel: Control the number of messages logged to the error.log.
0427 # Possible values include: debug, info, notice, warn, error, crit,
0428 # alert, emerg.
0429 #
0430 LogLevel warn
0431
0432 #
0433 # The following directives define some format nicknames for use with
0434 # a CustomLog directive (see below).
0435 #
0436 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
0437 LogFormat "%h %l %u %t \"%r\" %>s %b" common
0438 LogFormat "%{Referer}i -> %U" referer
0439 LogFormat "%{User-agent}i" agent
0440
0441 #
0442 # The location and format of the access logfile (Common Logfile Format).
0443 # If you do not define any access logfiles within a <VirtualHost>
0444 # container, they will be logged here. Contrariwise, if you *do*
0445 # define per-<VirtualHost> access logfiles, transactions will be
0446 # logged therein and *not* in this file.
0447 #
0448 CustomLog logs/access.log common
0449
0450 #
0451 # If you would like to have agent and referer logfiles, uncomment the
0452 # following directives.
0453 #
0454 #CustomLog logs/referer.log referer
0455 #CustomLog logs/agent.log agent
0456
0457 #
0458 # If you prefer a single logfile with access, agent, and referer information
0459 # (Combined Logfile Format) you can use the following directive.
0460 #
0461 #CustomLog logs/access.log combined
0462
0463 #
0464 # ServerTokens
0465 # This directive configures what you return as the Server HTTP response
0466 # Header. The default is 'Full' which sends information about the OS-Type
0467 # and compiled in modules.
0468 # Set to one of: Full | OS | Minor | Minimal | Major | Prod
0469 # where Full conveys the most information, and Prod the least.
0470 #
0471 ServerTokens Full
0472
0473 #
0474 # Optionally add a line containing the server version and virtual host
0475 # name to server-generated pages (internal error documents, FTP directory
0476 # listings, mod_status and mod_info output etc., but not CGI generated
0477 # documents or custom error documents).
0478 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
0479 # Set to one of: On | Off | EMail
0480 #
0481 ServerSignature On
0482
0483 #
0484 # Aliases: Add here as many aliases as you need (with no limit). The format is
0485 # Alias fakename realname
0486 #
0487 # Note that if you include a trailing / on fakename then the server will
0488 # require it to be present in the URL. So "/icons" isn't aliased in this
0489 # example, only "/icons/". If the fakename is slash-terminated, then the
0490 # realname must also be slash terminated, and if the fakename omits the
0491 # trailing slash, the realname must also omit it.
0492 #
0493 # We include the /icons/ alias for FancyIndexed directory listings. If you
0494 # do not use FancyIndexing, you may comment this out.
0495
0496 Alias /icons/ "C:/Program Files/Apache Group/Apache2/icons/"
0497
0498 # 2002.09.30 @san10 # 3 Lines add
0499
0500 Alias /~sgi "C:/sgi/public_html/"
0501 Alias / "C:/Program Files/Apache Group/Tomcat 4.1/webapps/"
0502 Alias /perl "C:/usr/local/html/"
0503
0504 <Directory "C:/Program Files/Apache Group/Apache2/icons">
0505 Options Indexes MultiViews
0506 AllowOverride None
0507 Order allow,deny
0508 Allow from all
0509 </Directory>
0510
0511 #
0512 # This should be changed to the ServerRoot/manual/. The alias provides
0513 # the manual, even if you choose to move your DocumentRoot. You may comment
0514 # this out if you do not care for the documentation.
0515 #
0516 Alias /manual "C:/Program Files/Apache Group/Apache2/manual"
0517
0518 <Directory "C:/Program Files/Apache Group/Apache2/manual">
0519 Options Indexes FollowSymLinks MultiViews IncludesNoExec
0520 AddOutputFilter Includes html
0521 AllowOverride None
0522 Order allow,deny
0523 Allow from all
0524
0525
0526 # 2002.09.30 @san11 # add 7 Lines
0527 Alias /html "C:/usr/local/html"
0528
0529
0530 Options Indexes FollowSymLinks MultiViews
0531 AllowOverride None
0532 Order allow,deny
0533 Allow from all
0534
0535
0536
0537 #
0538 # ScriptAlias: This controls which directories contain server scripts.
0539 # ScriptAliases are essentially the same as Aliases, except that
0540 # documents in the realname directory are treated as applications and
0541 # run by the server when requested rather than as documents sent to the client.
0542 # The same rules about trailing "/" apply to ScriptAlias directives as to
0543 # Alias.
0544 #
0545 ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
0546
0547 #your Script0548 Aliased
0549 # "C:/Program Files/Apache Group/Apache2/cgi-bin" should be changed to whatever
0550 # CGI directory exists, if you have that configured.
0551 #
0552 <Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
0553 AllowOverride None
0554 Options None
0555 Order allow,deny
0556 Allow from all
0557 </Directory>
0558
0559 #
0560 # Redirect allows you to tell clients about documents which used to exist in
0561 # your server's namespace, but do not anymore. This allows you to tell the
0562 # clients where to look for the relocated document.
0563 # Example:
0564 # Redirect permanent /foo http://www.example.com/bar
0565
0566 #
0567 # Directives controlling the display of server-generated directory listings.
0568 #
0569
0570 #
0571 # IndexOptions: Controls the appearance of server-generated directory
0572 # listings.
0573 #
0574 IndexOptions FancyIndexing VersionSort
0575
0576 #
0577 # AddIcon* directives tell the server which icon to show for different
0578 # files or filename extensions. These are only displayed for
0579 # FancyIndexed directories.
0580 #
0581 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
0582
0583 AddIconByType (TXT,/icons/text.gif) text/*
0584 AddIconByType (IMG,/icons/image2.gif) image/*
0585 AddIconByType (SND,/icons/sound2.gif) audio/*
0586 AddIconByType (VID,/icons/movie.gif) video/*
0587
0588 AddIcon /icons/binary.gif .bin .exe
0589 AddIcon /icons/binhex.gif .hqx
0590 AddIcon /icons/tar.gif .tar
0591 AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
0592 AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
0593 AddIcon /icons/a.gif .ps .ai .eps
0594 AddIcon /icons/layout.gif .html .shtml .htm .pdf
0595 AddIcon /icons/text.gif .txt
0596 AddIcon /icons/c.gif .c
0597 AddIcon /icons/p.gif .pl .py
0598 AddIcon /icons/f.gif .for
0599 AddIcon /icons/dvi.gif .dvi
0600 AddIcon /icons/uuencoded.gif .uu
0601 AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
0602 AddIcon /icons/tex.gif .tex
0603 AddIcon /icons/bomb.gif core
0604
0605 AddIcon /icons/back.gif ..
0606 AddIcon /icons/hand.right.gif README
0607 AddIcon /icons/folder.gif ^^DIRECTORY^^
0608 AddIcon /icons/blank.gif ^^BLANKICON^^
0609
0610 #
0611 # DefaultIcon is which icon to show for files which do not have an icon
0612 # explicitly set.
0613 #
0614 DefaultIcon /icons/unknown.gif
0615
0616 #
0617 # AddDescription allows you to place a short description after a file in
0618 # server-generated indexes. These are only displayed for FancyIndexed
0619 # directories.
0620 # Format: AddDescription "description" filename
0621 #
0622 #AddDescription "GZIP compressed document" .gz
0623 #AddDescription "tar archive" .tar
0624 #AddDescription "GZIP compressed tar archive" .tgz
0625
0626 #
0627 # ReadmeName is the name of the README file the server will look for by
0628 # default, and append to directory listings.
0629 #
0630 # HeaderName is the name of a file which should be prepended to
0631 # directory indexes.
0632 ReadmeName README.html
0633 HeaderName HEADER.html
0634
0635 #
0636 # IndexIgnore is a set of filenames which directory indexing should ignore
0637 # and not include in the listing. Shell-style wildcarding is permitted.
0638 #
0639 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
0640
0641 #
0642 # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
0643 # information on the fly. Note: Not all browsers support this.
0644 # Despite the name similarity, the following Add* directives have nothing
0645 # to do with the FancyIndexing customization directives above.
0646 #
0647 AddEncoding x-compress Z
0648 AddEncoding x-gzip gz tgz
0649
0650 #
0651 # DefaultLanguage and AddLanguage allows you to specify the language of
0652 # a document. You can then use content negotiation to give a browser a
0653 # file in a language the user can understand.
0654 #
0655 # Specify a default language. This means that all data
0656 # going out without a specific language tag (see below) will
0657 # be marked with this one. You probably do NOT want to set
0658 # this unless you are sure it is correct for all cases.
0659 #
0660 # * It is generally better to not mark a page as
0661 # * being a certain language than marking it with the wrong
0662 # * language!
0663 #
0664 # DefaultLanguage nl
0665 #
0666 # Note 1: The suffix does not have to be the same as the language
0667 # keyword --- those with documents in Polish (whose net-standard
0668 # language code is pl) may wish to use "AddLanguage pl .po" to
0669 # avoid the ambiguity with the common suffix for perl scripts.
0670 #
0671 # Note 2: The example entries below illustrate that in some cases
0672 # the two character 'Language' abbreviation is not identical to
0673 # the two character 'Country' code for its country,
0674 # E.g. 'Danmark/dk' versus 'Danish/da'.
0675 #
0676 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
0677 # specifier. There is 'work in progress' to fix this and get
0678 # the reference data for rfc1766 cleaned up.
0679 #
0680 # Danish (da) - Dutch (nl) - English (en) - Estonian (et)
0681 # French (fr) - German (de) - Greek-Modern (el)
0682 # Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (ko)
0683 # Portugese (pt) - Luxembourgeois* (ltz)
0684 # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
0685 # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
0686 # Russian (ru) - Croatian (hr)
0687
0688 AddLanguage ja .ja
0689 AddLanguage da .dk
0690 AddLanguage nl .nl
0691 AddLanguage en .en
0692 AddLanguage et .et
0693 AddLanguage fr .fr
0694 AddLanguage de .de
0695 AddLanguage he .he
0696 AddLanguage el .el
0697 AddLanguage it .it
0698 AddLanguage pl .po
0699 AddLanguage ko .ko
0700 AddLanguage pt .pt
0701 AddLanguage nn .nn
0702 AddLanguage no .no
0703 AddLanguage pt-br .pt-br
0704 AddLanguage ltz .ltz
0705 AddLanguage ca .ca
0706 AddLanguage es .es
0707 AddLanguage sv .se
0708 AddLanguage cz .cz
0709 AddLanguage ru .ru
0710 AddLanguage tw .tw
0711 AddLanguage zh-tw .tw
0712 AddLanguage hr .hr
0713
0714 # LanguagePriority allows you to give precedence to some languages
0715 # in case of a tie during content negotiation.
0716 #
0717 # Just list the languages in decreasing order of preference. We have
0718 # more or less alphabetized them here. You probably want to change this.
0719 #
0720
0721 # 2002.09.30 @san12 # ja.ja を先頭にont>
0722 LanguagePriority ja en da nl et fr de el it ko no pl pt pt-br ltz ca es sv tw
0741 # 2002.09.30 @san13 # コメントアウト
0742 #AddDefaultCharset ISO-8859-1
0743
0744 #
0745 # Commonly used filename extensions to character sets. You probably
0746 # want to avoid clashes with the language extensions, unless you
0747 # are good at carefully testing your setup after each change.
0748 # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for
0749 # the official list of charset names and their respective RFCs
0750 #
0751 AddCharset ISO-8859-1 .iso8859-1 .latin1
0752 AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
0753 AddCharset ISO-8859-3 .iso8859-3 .latin3
0754 AddCharset ISO-8859-4 .iso8859-4 .latin4
0755 AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
0756 AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
0757 AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
0758 AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
0759 AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
0760 AddCharset ISO-2022-JP .iso2022-jp .jis
0761 AddCharset ISO-2022-KR .iso2022-kr .kis
0762 AddCharset ISO-2022-CN .iso2022-cn .cis
0763 AddCharset Big5 .Big5 .big5
0764 # For russian, more than one charset is used (depends on client, mostly):
0765 AddCharset WINDOWS-1251 .cp-1251 .win-1251
0766 AddCharset CP866 .cp866
0767 AddCharset KOI8-r .koi8-r .koi8-ru
0768 AddCharset KOI8-ru .koi8-uk .ua
0769 AddCharset ISO-10646-UCS-2 .ucs2
0770 AddCharset ISO-10646-UCS-4 .ucs4
0771 AddCharset UTF-8 .utf8
0772
0773 # The set below does not map to a specific (iso) standard
0774 # but works on a fairly wide range of browsers. Note that
0775 # capitalization actually matters (it should not, but it
0776 # does for some browsers).
0777 #
0778 # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets
0779 # for a list of sorts. But browsers support few.
0780 #
0781 AddCharset GB2312 .gb2312 .gb
0782 AddCharset utf-7 .utf7
0783 AddCharset utf-8 .utf8
0784 AddCharset big5 .big5 .b5
0785 AddCharset EUC-TW .euc-tw
0786 AddCharset EUC-JP .euc-jp
0787 AddCharset EUC-KR .euc-kr
0788 AddCharset shift_jis .sjis
0789
0790 #
0791 # AddType allows you to add to or override the MIME configuration
0792 # file mime.types for specific file types.
0793 #
0794 AddType application/x-tar .tgz
0795 AddType image/x-icon .ico
0796
0797 #
0798 # AddHandler allows you to map certain file extensions to "handlers":
0799 # actions unrelated to filetype. These can be either built into the server
0800 # or added with the Action directive (see below)
0801 #
0802 # To use CGI scripts outside of ScriptAliased directories:
0803 # (You will also need to add "ExecCGI" to the "Options" directive.)
0804
0805 # 2002.09.30 @san14 # コメントをとる
0806 AddHandler cgi-script .cgi
0807
0808 #
0809 # For files that include their own HTTP headers:
0810
0811 # 2002.09.30 @san15 # コメントをとる
0812 AddHandler send-as-is asis
0813
0814 #
0815 # For server-parsed imagemap files:
0816
0817 # 2002.09.30 @san16 # コメントをとる
0818 AddHandler imap-file map
0819
0820 #
0821 # For type maps (negotiated resources):
0822 # (This is enabled by default to allow the Apache "It Worked" page
0823 # to be distributed in multiple languages.)
0824 #
0825 AddHandler type-map var
0826
0827 #
0828 # Filters allow you to process content before it is sent to the client.
0829 #
0830 # To parse .shtml files for server-side includes (SSI):
0831 # (You will also need to add "Includes" to the "Options" directive.)
0832 #
0833 #AddType text/html .shtml
0834
0835 AddOutputFilter INCLUDES .shtml
0836
0837 # 2002.09.30 @san17 # コメントをとる
0838 AddOutputFilter INCLUDES .html
0839
0840 #
0841 # Action lets you define media types that will execute a script whenever
0842 # a matching file is called. This eliminates the need for repeated URL
0843 # pathnames for oft-used CGI file processors.
0844 # Format: Action media/type /cgi-script/location
0845 # Format: Action handler-name /cgi-script/location
0846 #
0847
0848 #
0849 # Customizable error responses come in three flavors:
0850 # 1) plain text 2) local redirects 3) external redirects
0851 #
0852 # Some examples:
0853 #ErrorDocument 500 "The server made a boo boo."
0854 #ErrorDocument 404 /missing.html
0855 #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
0856 #ErrorDocument 402 http://www.example.com/subscription_info.html
0857 #
0858
0859 #
0860 # Putting this all together, we can internationalize error responses.
0861 #
0862 # We use Alias to redirect any /error/HTTP_<error>.html.var response to
0863 # our collection of by-error message multi-language collections. We use
0864 # includes to substitute the appropriate text.
0865 #
0866 # You can modify the messages' appearance without changing any of the
0867 # default HTTP_<error>.html.var files by adding the line:
0868 #
0869 # Alias /error/include/ "/your/include/path/"
0870 #
0871 # which allows you to create your own set of files by starting with the
0872 # @exp_errordir@/include/ files and copying them to /your/include/path/,
0873 # even on a per-VirtualHost basis. The default include files will display
0874 # your Apache version number and your ServerAdmin email address regardless
0875 # of the setting of ServerSignature.
0876 #
0877 # The internationalized error documents require mod_alias, mod_include
0878 # and mod_negotiation. To activate them, uncomment the following 30 lines.
0879
0880 # Alias /error/ "@exp_errordir@/"
0881 #
0882 # <Directory "@exp_errordir@">
0883 # AllowOverride None
0884 # Options IncludesNoExec
0885 # AddOutputFilter Includes html
0886 # AddHandler type-map var
0887 # Order allow,deny
0888 # Allow from all
0889 # LanguagePriority en de es fr it nl sv
0890 # ForceLanguagePriority Prefer Fallback
0891 # </Directory>
0892 #
0893 # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
0894 # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
0895 # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
0896 # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
0897 # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
0898 # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
0899 # ErrorDocument 410 /error/HTTP_GONE.html.var
0900 # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
0901 # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
0902 # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
0903 # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
0904 # ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
0905 # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
0906 # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
0907 # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
0908 # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
0909 # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
0910
0911
0912
0913 #
0914 # The following directives modify normal HTTP response behavior to
0915 # handle known problems with browser implementations.
0916 #
0917 BrowserMatch "Mozilla/2" nokeepalive
0918 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
0919 BrowserMatch "RealPlayer 4\.0" force-response-1.0
0920 BrowserMatch "Java/1\.0" force-response-1.0
0921 BrowserMatch "JDK/1\.0" force-response-1.0
0922
0923 #
0924 # The following directive disables redirects on non-GET requests for
0925 # a directory that does not include the trailing slash. This fixes a
0926 # problem with Microsoft WebFolders which does not appropriately handle
0927 # redirects for folders with DAV methods.
0928 # Same deal with Apple's DAV filesystem.
0929 #ully
0930 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-caref
0931 BrowserMatch "^WebDrive" redirect-carefully
0932 BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
0933
0934 #
0935 # Allow server status reports generated by mod_status,
0936 # with the URL of http://servername/server-status
0937 # Change the ".127.0.0.1" to match your domain to enable.
0938 #
0939 #<Location /server-status>
0940 # SetHandler server-status
0941 # Order deny,allow
0942 # Deny from all
0943 # Allow from .127.0.0.1
0944 #</Location>
0945
0946 #
0947 # Allow remote server configuration reports, with the URL of
0948 # http://servername/server-info (requires that mod_info.c be loaded).
0949 # Change the ".127.0.0.1" to match your domain to enable.
0950 #
0951 #<Location /server-info>
0952 # SetHandler server-info
0953 # Order deny,allow
0954 # Deny from all
0955 # Allow from .127.0.0.1
0956 #
0957
0958 #
0959 # Proxy Server directives. Uncomment the following lines to
0960 # enable the proxy server:
0961 #
0962 #
0963 #ProxyRequests On
0964 #
0965 #
0966 # Order deny,allow
0967 # Deny from all
0968 # Allow from .example.com
0969 #
0970
0971 #
0972 # Enable/disable the handling of HTTP/1.1 "Via:" headers.
0973 # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
0974 # Set to one of: Off | On | Full | Block
0975 #
0976 #ProxyVia On
0977
0978 #
0979 # To enable the cache as well, edit and uncomment the following lines:
0980 # (no cacheing without CacheRoot)
0981 #
0982 #CacheRoot "C:/Program Files/Apache Group/Apache2/proxy"
0983 #CacheSize 5
0984 #CacheGcInterval 4
0985 #CacheMaxExpire 24
0986 #CacheLastModifiedFactor 0.1
0987 #CacheDefaultExpire 1
0988 #NoCache a-domain.com another-domain.edu joes.garage-sale.com
0989
0990 #</IfModule>
0991 # End of proxy directives.
0992
0993 #
0994 # Bring in additional module-specific configurations
0995 #
0996 <IfModule mod_ssl.c>
0997 Include conf/ssl.conf
0998 </IfModule>
0999
1000
1001 ### Section 3: Virtual Hosts
1002 #
1003 # VirtualHost: If you want to maintain multiple domains/hostnames on your
1004 # machine you can setup VirtualHost containers for them. Most configurations
1005 # use only name-based virtual hosts so the server doesn't need to worry about
1006 # IP addresses. This is indicated by the asterisks in the directives below.
1007 #
1008 # Please see the documentation at
1009 # <URL:http://httpd.apache.org/docs-2.0/vhosts/ >
1010 # for further details before you try to setup virtual hosts.
1011 #
1012 # You may use the command line option '-S' to verify your virtual host
1013 # configuration.
1014
1015 #
1016 # Use name-based virtual hosting.
1017 #
1018 #NameVirtualHost *
1019
1020 #
1021 # VirtualHost example:
1022 # Almost any Apache directive may go into a VirtualHost container.
1023 # The first VirtualHost section is used for requests without a known
1024 # server name.
1025 #
1026 #<VirtualHost *>
1027 # ServerAdmin webmaster@dummy-host.example.com
1028 # DocumentRoot /www/docs/dummy-host.example.com
1029 # ServerName dummy-host.example.com
1030 # ErrorLog logs/dummy-host.example.com-error_log
1031 # CustomLog logs/dummy-host.example.com-access_log common
1032 #</VirtualHost>