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