/[suikacvs]/webroot/admin/news/httpd.conf
Suika

Contents of /webroot/admin/news/httpd.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Fri Nov 30 12:44:47 2001 UTC (22 years, 11 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +0 -0 lines
FILE REMOVED
*** empty log message ***

1 wakaba 1.7
2     #
3     # AddDescription allows you to place a short description after a file in
4     # server-generated indexes. These are only displayed for FancyIndexed
5     # directories.
6     # Format: AddDescription "description" filename
7     #
8     #AddDescription "GZIP compressed document" .gz
9     #AddDescription "tar archive" .tar
10     #AddDescription "GZIP compressed tar archive" .tgz
11    
12     #
13     # ReadmeName is the name of the README file the server will look for by
14     # default, and append to directory listings.
15     #
16     # HeaderName is the name of a file which should be prepended to
17     # directory indexes.
18     #
19     # If MultiViews are amongst the Options in effect, the server will
20     # first look for name.html and include it if found. If name.html
21     # doesn't exist, the server will then look for name.txt and include
22     # it as plaintext if found.
23     #
24     ReadmeName README
25     HeaderName HEADER
26    
27     #
28     # IndexIgnore is a set of filenames which directory indexing should ignore
29     # and not include in the listing. Shell-style wildcarding is permitted.
30     #
31     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t *.BAK
32    
33     </IfModule>
34     # End of indexing directives.
35    
36     #
37     # Document types.
38     #
39     <IfModule mod_mime.c>
40    
41     #
42     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
43     # information on the fly. Note: Not all browsers support this.
44     # Despite the name similarity, the following Add* directives have nothing
45     # to do with the FancyIndexing customization directives above.
46     #
47     #AddEncoding x-compress Z
48     AddEncoding x-gzip gz
49     # tgz
50    
51     #
52     # AddLanguage allows you to specify the language of a document. You can
53     AddDefaultCharset on
54     # then use content negotiation to give a browser a file in a language
55     # it can understand.
56     #
57     # Note 1: The suffix does not have to be the same as the language
58     # keyword --- those with documents in Polish (whose net-standard
59     # language code is pl) may wish to use "AddLanguage pl .po" to
60     # avoid the ambiguity with the common suffix for perl scripts.
61     #
62     # Note 2: The example entries below illustrate that in quite
63     # some cases the two character 'Language' abbreviation is not
64     # identical to the two character 'Country' code for its country,
65     # E.g. 'Danmark/dk' versus 'Danish/da'.
66     #
67     # Note 3: In the case of 'ltz' we violate the RFC by using a three char
68     # specifier. But there is 'work in progress' to fix this and get
69     # the reference data for rfc1766 cleaned up.
70     #
71     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
72     # French (fr) - German (de) - Greek-Modern (el)
73     # Italian (it) - Korean (kr) - Norwegian (no)
74     # Portugese (pt) - Luxembourgeois* (ltz)
75     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
76     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
77     # Russian (ru)
78     #
79     AddLanguage en .en
80     AddLanguage ja .ja
81     AddLanguage zh .zh
82     AddLanguage kr .kr
83     AddCharset ISO-2022-JP .2jp .jis
84     AddCharset UTF-8 .u8 .utf8
85     AddCharset ISO-2022-JP-3 .2j3
86     AddCharset EUC-JISX0213 .ej3
87     AddCharset Shift_JISX0213 .sj3 .sjis
88     AddCharset EUC-JP .ejp
89    
90     # LanguagePriority allows you to give precedence to some languages
91     # in case of a tie during content negotiation.
92     #
93     # Just list the languages in decreasing order of preference. We have
94     # more or less alphabetized them here. You probably want to change this.
95     #
96     <IfModule mod_negotiation.c>
97     #LanguagePriority ja en zh da nl et fr de el it kr no pl pt pt-br ru ltz ca es sv tw
98     LanguagePriority ja en zh kr
99     </IfModule>
100    
101     #
102 wakaba 1.4 # AddType allows you to tweak mime.types without actually editing it, or to
103     # make certain files to be certain types.
104     #
105     # For example, the PHP 3.x module (not part of the Apache distribution - see
106     # http://www.php.net) will typically use:
107     #
108     #AddType application/x-httpd-php3 .php3
109     #AddType application/x-httpd-php3-source .phps
110     #
111     # And for PHP 4.x, use:
112     #
113     AddType application/x-httpd-php .php
114     AddType application/x-httpd-php-source .phps
115    
116     #AddType application/x-tar .tgz
117    
118     #
119     # AddHandler allows you to map certain file extensions to "handlers",
120     # actions unrelated to filetype. These can be either built into the server
121     # or added with the Action command (see below)
122     #
123     # If you want to use server side includes, or CGI outside
124     # ScriptAliased directories, uncomment the following lines.
125     #
126     # To use CGI scripts:
127     #
128     AddHandler cgi-script .cgi
129    
130     #
131     # To use server-parsed HTML files
132     #
133     #AddType text/html .shtml
134     #AddHandler server-parsed .shtml
135    
136     #
137     # Uncomment the following line to enable Apache's send-asis HTTP file
138     # feature
139     #
140     #AddHandler send-as-is asis
141    
142     #
143     # If you wish to use server-parsed imagemap files, use
144     #
145     #AddHandler imap-file map
146    
147     #
148     # To enable type maps, you might want to use
149     #
150     #AddHandler type-map var
151    
152     </IfModule>
153    
154     <IfModule mod_headers.c>
155     Header set Content-Style-Type text/css
156     Header set Content-Script-Type text/javascript
157     </IfModule>
158    
159     # End of document types.
160    
161     #
162     # Action lets you define media types that will execute a script whenever
163     # a matching file is called. This eliminates the need for repeated URL
164     # pathnames for oft-used CGI file processors.
165     # Format: Action media/type /cgi-script/location
166     # Format: Action handler-name /cgi-script/location
167     #
168    
169     #
170     # MetaDir: specifies the name of the directory in which Apache can find
171     # meta information files. These files contain additional HTTP headers
172     # to include when sending the document
173     #
174     #MetaDir .web
175    
176     #
177     # MetaSuffix: specifies the file name suffix for the file containing the
178     # meta information.
179     #
180     #MetaSuffix .meta
181    
182     #
183     # Customizable error response (Apache style)
184     # these come in three flavors
185     #
186     # 1) plain text
187     #ErrorDocument 500 "The server made a boo boo.
188     # n.b. the single leading (") marks it as text, it does not get output
189     #
190     # 2) local redirects
191     #ErrorDocument 404 /missing.html
192     # to redirect to local URL /missing.html
193     #ErrorDocument 404 /cgi-bin/missing_handler.pl
194     # N.B.: You can redirect to a script or a document using server-side-includes.
195     #
196     # 3) external redirects
197     #ErrorDocument 402 http://some.other_server.com/subscription_info.html
198     # N.B.: Many of the environment variables associated with the original
199     # request will *not* be available to such a script.
200    
201 wakaba 1.2 ErrorDocument 401 /error/401
202     ErrorDocument 403 /error/403
203     ErrorDocument 404 /error/404
204     ErrorDocument 500 /error/500
205    
206    
207     #
208     # Customize behaviour based on the browser
209     #
210     <IfModule mod_setenvif.c>
211    
212     SetEnv LANG ja_JP.eucJP
213    
214     #
215     # The following directives modify normal HTTP response behavior.
216     # The first directive disables keepalive for Netscape 2.x and browsers that
217     # spoof it. There are known problems with these browser implementations.
218     # The second directive is for Microsoft Internet Explorer 4.0b2
219     # which has a broken HTTP/1.1 implementation and does not properly
220     # support keepalive when it is used on 301 or 302 (redirect) responses.
221     #
222     BrowserMatch "Mozilla/2" nokeepalive
223     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
224    
225     #
226     # The following directive disables HTTP/1.1 responses to browsers which
227     # are in violation of the HTTP/1.0 spec by not being able to grok a
228     # basic 1.1 response.
229     #
230     BrowserMatch "RealPlayer 4\.0" force-response-1.0
231     BrowserMatch "Java/1\.0" force-response-1.0
232     BrowserMatch "JDK/1\.0" force-response-1.0
233    
234     </IfModule>
235     # End of browser customization directives
236    
237     #
238     # Allow server status reports, with the URL of http://servername/server-status
239     # Change the ".your_domain.com" to match your domain to enable.
240     #
241     <Location "/admin/web.ad/status">
242     SetHandler server-status
243     </Location>
244    
245     #
246     # Allow remote server configuration reports, with the URL of
247     # http://servername/server-info (requires that mod_info.c be loaded).
248     # Change the ".your_domain.com" to match your domain to enable.
249     #
250     #<Location "/admin/web.ad/info">
251     # SetHandler server-info
252     # Order deny,allow
253     # Deny from all
254     # Allow from .your_domain.com
255     #</Location>
256    
257     <IfModule mod_perl.c>
258     <Location /admin/web.ad/perl-status>
259     SetHandler perl-script
260     PerlHandler Apache::Status
261     </Location>
262     </IfModule>
263    
264    
265    
266     #
267     # There have been reports of people trying to abuse an old bug from pre-1.1
268     # days. This bug involved a CGI script distributed as a part of Apache.
269     # By uncommenting these lines you can redirect these attacks to a logging
270     # script on phf.apache.org. Or, you can record them yourself, using the script
271     # support/phf_abuse_log.cgi.
272     #
273     #<Location /cgi-bin/phf*>
274     # Deny from all
275     # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
276     #</Location>
277    
278     #
279     # Proxy Server directives. Uncomment the following lines to
280     # enable the proxy server:
281     #
282     #<IfModule mod_proxy.c>
283     # ProxyRequests On
284    
285     # <Directory proxy:*>
286     # Order deny,allow
287     # Deny from all
288     # Allow from .your_domain.com
289     # </Directory>
290    
291     #
292     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
293     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
294     # Set to one of: Off | On | Full | Block
295     #
296     # ProxyVia On
297    
298     #
299     # To enable the cache as well, edit and uncomment the following lines:
300     # (no cacheing without CacheRoot)
301     #
302     # CacheRoot "/usr/local/apache/proxy"
303     # CacheSize 5
304     # CacheGcInterval 4
305     # CacheMaxExpire 24
306     # CacheLastModifiedFactor 0.1
307     # CacheDefaultExpire 1
308     # NoCache a_domain.com another_domain.edu joes.garage_sale.com
309    
310     #</IfModule>
311     # End of proxy directives.
312    
313     ### Section 3: Virtual Hosts
314     #
315     # VirtualHost: If you want to maintain multiple domains/hostnames on your
316     # machine you can setup VirtualHost containers for them. Most configurations
317     # use only name-based virtual hosts so the server doesn't need to worry about
318     # IP addresses. This is indicated by the asterisks in the directives below.
319     #
320     # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
321     # for further details before you try to setup virtual hosts.
322     #
323     # You may use the command line option '-S' to verify your virtual host
324     # configuration.
325    
326     #
327     # Use name-based virtual hosting.
328     #
329     #NameVirtualHost *
330    
331     #
332     # VirtualHost example:
333     # Almost any Apache directive may go into a VirtualHost container.
334     # The first VirtualHost section is used for requests without a known
335     # server name.
336     #
337     #<VirtualHost *>
338     # ServerAdmin webmaster@dummy-host.example.com
339 wakaba 1.1 # DocumentRoot /www/docs/dummy-host.example.com
340     # ServerName dummy-host.example.com
341     # ErrorLog logs/dummy-host.example.com-error_log
342     # CustomLog logs/dummy-host.example.com-access_log common
343     #</VirtualHost>
344    
345     ## apache/conf/httpd.conf ends here.

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24