由 icekernel 在 09-18-2003 13:16 发表:
apache遇到的怪问题
用ie没法访问所有的html文件 浏览是一片空白 用mozilla就可以顺利访问
系统是 rh9.0.93 2.4.21
这是我配置文件 用的是http2.0.47+tomcat4.1.24 jdk 1.4.1
Based upon the NCSA server configuration files originally by Rob McCool.
This is the main Apache server configuration file. It contains the
configuration directives that give the server its instructions.
See
1<url: docs-2.0="" http:="" httpd.apache.org=""> for detailed information about
2
3# the directives.
4
5#
6
7# Do NOT simply read the instructions in here without understanding
8
9# what they do. They're here only as hints or reminders. If you are unsure
10
11# consult the online docs. You have been warned.
12
13#
14
15# The configuration directives are grouped into three basic sections:
16
17# 1. Directives that control the operation of the Apache server process as a
18
19# whole (the 'global environment').
20
21# 2. Directives that define the parameters of the 'main' or 'default' server,
22
23# which responds to requests that aren't handled by a virtual host.
24
25# These directives also provide default values for the settings
26
27# of all virtual hosts.
28
29# 3. Settings for virtual hosts, which allow Web requests to be sent to
30
31# different IP addresses or hostnames and have them handled by the
32
33# same Apache server process.
34
35#
36
37# Configuration and logfile names: If the filenames you specify for many
38
39# of the server's control files begin with "/" (or "drive:/" for Win32), the
40
41# server will use that explicit path. If the filenames do *not* begin
42
43# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
44
45# with ServerRoot set to "/etc/httpd" will be interpreted by the
46
47# server as "/etc/httpd/logs/foo.log".
48
49#
50
51
52
53### Section 1: Global Environment
54
55#
56
57# The directives in this section affect the overall operation of Apache,
58
59# such as the number of concurrent requests it can handle or where it
60
61# can find its configuration files.
62
63#
64
65
66
67#
68
69# Don't give away too much information about all the subcomponents
70
71# we are running. Comment out this line if you don't mind remote sites
72
73# finding out what major optional modules you are running
74
75#ServerTokens OS
76
77
78
79#
80
81# ServerRoot: The top of the directory tree under which the server's
82
83# configuration, error, and log files are kept.
84
85#
86
87# NOTE! If you intend to place this on an NFS (or otherwise network)
88
89# mounted filesystem then please read the LockFile documentation
90
91# (available at <url: core.html#lockfile="" docs-2.0="" http:="" httpd.apache.org="" mod=""> );
92
93# you will save yourself a lot of trouble.
94
95#
96
97# Do NOT add a slash at the end of the directory path.
98
99#
100
101ServerRoot "/etc/httpd"
102
103
104
105#
106
107# ScoreBoardFile: File used to store internal server process information.
108
109# If unspecified (the default), the scoreboard will be stored in an
110
111# anonymous shared memory segment, and will be unavailable to third-party
112
113# applications.
114
115# If specified, ensure that no two invocations of Apache share the same
116
117# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
118
119#
120
121#ScoreBoardFile run/httpd.scoreboard
122
123
124
125#
126
127# PidFile: The file in which the server should record its process
128
129# identification number when it starts.
130
131#
132
133PidFile run/httpd.pid
134
135
136
137#
138
139# Timeout: The number of seconds before receives and sends time out.
140
141#
142
143Timeout 300
144
145
146
147#
148
149# KeepAlive: Whether or not to allow persistent connections (more than
150
151# one request per connection). Set to "Off" to deactivate.
152
153#
154
155KeepAlive Off
156
157
158
159#
160
161# MaxKeepAliveRequests: The maximum number of requests to allow
162
163# during a persistent connection. Set to 0 to allow an unlimited amount.
164
165# We recommend you leave this number high, for maximum performance.
166
167#
168
169MaxKeepAliveRequests 400
170
171
172
173#
174
175# KeepAliveTimeout: Number of seconds to wait for the next request from the
176
177# same client on the same connection.
178
179#
180
181KeepAliveTimeout 30
182
183
184
185##
186
187## Server-Pool Size Regulation (MPM specific)
188
189##
190
191
192
193# prefork MPM
194
195# StartServers: number of server processes to start
196
197# MinSpareServers: minimum number of server processes which are kept spare
198
199# MaxSpareServers: maximum number of server processes which are kept spare
200
201# MaxClients: maximum number of server processes allowed to start
202
203# MaxRequestsPerChild: maximum number of requests a server process serves
204
205<ifmodule prefork.c="">
206
207StartServers 8
208
209MinSpareServers 5
210
211MaxSpareServers 20
212
213MaxClients 150
214
215MaxRequestsPerChild 1000
216
217</ifmodule>
218
219
220
221# worker MPM
222
223# StartServers: initial number of server processes to start
224
225# MaxClients: maximum number of simultaneous client connections
226
227# MinSpareThreads: minimum number of worker threads which are kept spare
228
229# MaxSpareThreads: maximum number of worker threads which are kept spare
230
231# ThreadsPerChild: constant number of worker threads in each server process
232
233# MaxRequestsPerChild: maximum number of requests a server process serves
234
235<ifmodule worker.c="">
236
237StartServers 2
238
239MaxClients 300
240
241MinSpareThreads 25
242
243MaxSpareThreads 75
244
245ThreadsPerChild 15
246
247MaxRequestsPerChild 2
248
249</ifmodule>
250
251
252
253# perchild MPM
254
255# NumServers: constant number of server processes
256
257# StartThreads: initial number of worker threads in each server process
258
259# MinSpareThreads: minimum number of worker threads which are kept spare
260
261# MaxSpareThreads: maximum number of worker threads which are kept spare
262
263# MaxThreadsPerChild: maximum number of worker threads in each server process
264
265# MaxRequestsPerChild: maximum number of connections per server process
266
267<ifmodule perchild.c="">
268
269NumServers 5
270
271StartThreads 5
272
273MinSpareThreads 5
274
275MaxSpareThreads 10
276
277MaxThreadsPerChild 20
278
279MaxRequestsPerChild 0
280
281</ifmodule>
282
283
284
285#
286
287# Listen: Allows you to bind Apache to specific IP addresses and/or
288
289# ports, in addition to the default. See also the <virtualhost>
290
291# directive.
292
293#
294
295# Change this to Listen on specific IP addresses as shown below to
296
297# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
298
299#
300
301#Listen 12.34.56.78:80
302
303Listen 80
304
305
306
307#
308
309# Dynamic Shared Object (DSO) Support
310
311#
312
313# To be able to use the functionality of a module which was built as a DSO you
314
315# have to place corresponding `LoadModule' lines at this location so the
316
317# directives contained in it are actually available _before_ they are used.
318
319# Statically compiled modules (those listed by `httpd -l') do not need
320
321# to be loaded here.
322
323#
324
325# Example:
326
327# LoadModule foo_module modules/mod_foo.so
328
329#
330
331LoadModule access_module modules/mod_access.so
332
333LoadModule auth_module modules/mod_auth.so
334
335LoadModule auth_anon_module modules/mod_auth_anon.so
336
337LoadModule auth_dbm_module modules/mod_auth_dbm.so
338
339LoadModule auth_digest_module modules/mod_auth_digest.so
340
341LoadModule ldap_module modules/mod_ldap.so
342
343LoadModule auth_ldap_module modules/mod_auth_ldap.so
344
345LoadModule include_module modules/mod_include.so
346
347LoadModule log_config_module modules/mod_log_config.so
348
349LoadModule env_module modules/mod_env.so
350
351LoadModule mime_magic_module modules/mod_mime_magic.so
352
353LoadModule cern_meta_module modules/mod_cern_meta.so
354
355LoadModule expires_module modules/mod_expires.so
356
357LoadModule headers_module modules/mod_headers.so
358
359LoadModule usertrack_module modules/mod_usertrack.so
360
361LoadModule unique_id_module modules/mod_unique_id.so
362
363LoadModule setenvif_module modules/mod_setenvif.so
364
365LoadModule mime_module modules/mod_mime.so
366
367LoadModule dav_module modules/mod_dav.so
368
369LoadModule status_module modules/mod_status.so
370
371LoadModule autoindex_module modules/mod_autoindex.so
372
373LoadModule asis_module modules/mod_asis.so
374
375LoadModule info_module modules/mod_info.so
376
377LoadModule dav_fs_module modules/mod_dav_fs.so
378
379LoadModule vhost_alias_module modules/mod_vhost_alias.so
380
381LoadModule negotiation_module modules/mod_negotiation.so
382
383LoadModule dir_module modules/mod_dir.so
384
385LoadModule imap_module modules/mod_imap.so
386
387LoadModule actions_module modules/mod_actions.so
388
389LoadModule speling_module modules/mod_speling.so
390
391LoadModule userdir_module modules/mod_userdir.so
392
393LoadModule alias_module modules/mod_alias.so
394
395LoadModule rewrite_module modules/mod_rewrite.so
396
397LoadModule proxy_module modules/mod_proxy.so
398
399LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
400
401LoadModule proxy_http_module modules/mod_proxy_http.so
402
403LoadModule proxy_connect_module modules/mod_proxy_connect.so
404
405LoadModule cache_module modules/mod_cache.so
406
407LoadModule disk_cache_module modules/mod_disk_cache.so
408
409LoadModule file_cache_module modules/mod_file_cache.so
410
411LoadModule mem_cache_module modules/mod_mem_cache.so
412
413LoadModule cgi_module modules/mod_cgi.so
414
415#LoadModule webapp_module modules/mod_webapp.so
416
417#webAppConnection warpConnection warp localhost:8008
418
419#WebAppDeploy examples warpConnection /examples
420
421#WebAppDeploy examples warpConnection /test
422
423#
424
425# Load config files from the config directory "/etc/httpd/conf.d".
426
427#
428
429Include conf.d/*.conf
430
431
432
433#
434
435# ExtendedStatus controls whether Apache will generate "full" status
436
437# information (ExtendedStatus On) or just basic information (ExtendedStatus
438
439# Off) when the "server-status" handler is called. The default is Off.
440
441#
442
443#ExtendedStatus On
444
445
446
447### Section 2: 'Main' server configuration
448
449#
450
451# The directives in this section set up the values used by the 'main'
452
453# server, which responds to any requests that aren't handled by a
454
455# <virtualhost> definition. These values also provide defaults for
456
457# any <virtualhost> containers you may define later in the file.
458
459#
460
461# All of these directives may appear inside <virtualhost> containers,
462
463# in which case these default settings will be overridden for the
464
465# virtual host being defined.
466
467#
468
469
470
471#
472
473# If you wish httpd to run as a different user or group, you must run
474
475# httpd as root initially and it will switch.
476
477#
478
479# User/Group: The name (or #number) of the user/group to run httpd as.
480
481# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
482
483# . On HPUX you may not be able to use shared memory as nobody, and the
484
485# suggested workaround is to create a user www and use that user.
486
487# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
488
489# when the value of (unsigned)Group is above 60000;
490
491# don't use Group #-1 on these systems!
492
493#
494
495User apache
496
497Group apache
498
499
500
501#
502
503# ServerAdmin: Your address, where problems with the server should be
504
505# e-mailed. This address appears on some server-generated pages, such
506
507# as error documents. e.g. [email protected]
508
509#
510
511ServerAdmin root@localhost
512
513
514
515#
516
517# ServerName gives the name and port that the server uses to identify itself.
518
519# This can often be determined automatically, but we recommend you specify
520
521# it explicitly to prevent problems during startup.
522
523#
524
525# If this is not set to valid DNS name for your host, server-generated
526
527# redirections will not work. See also the UseCanonicalName directive.
528
529#
530
531# If your host doesn't have a registered DNS name, enter its IP address here.
532
533# You will have to access it by its address anyway, and this will make
534
535# redirections work in a sensible way.
536
537#
538
539ServerName 202.115.128.162:80
540
541
542
543#
544
545# UseCanonicalName: Determines how Apache constructs self-referencing
546
547# URLs and the SERVER_NAME and SERVER_PORT variables.
548
549# When set "Off", Apache will use the Hostname and Port supplied
550
551# by the client. When set "On", Apache will use the value of the
552
553# ServerName directive.
554
555#
556
557UseCanonicalName Off
558
559
560
561#
562
563# DocumentRoot: The directory out of which you will serve your
564
565# documents. By default, all requests are taken from this directory, but
566
567# symbolic links and aliases may be used to point to other locations.
568
569#
570
571DocumentRoot "/var/www/html"
572
573
574
575#
576
577# Each directory to which Apache has access can be configured with respect
578
579# to which services and features are allowed and/or disabled in that
580
581# directory (and its subdirectories).
582
583#
584
585# First, we configure the "default" to be a very restrictive set of
586
587# features.
588
589#
590
591<directory></directory>
592
593Options FollowSymLinks
594
595AllowOverride None
596
597
598
599
600
601#
602
603# Note that from this point forward you must specifically allow
604
605# particular features to be enabled - so if something's not working as
606
607# you might expect, make sure that you have specifically enabled it
608
609# below.
610
611#
612
613
614
615#
616
617# This should be changed to whatever you set DocumentRoot to.
618
619#
620
621<directory "="" html"="" var="" www="">
622
623
624
625#
626
627# Possible values for the Options directive are "None", "All",
628
629# or any combination of:
630
631# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
632
633#
634
635# Note that "MultiViews" must be named *explicitly* --- "Options All"
636
637# doesn't give it to you.
638
639#
640
641# The Options directive is both complicated and important. Please see
642
643# http://httpd.apache.org/docs-2.0/mod/core.html#options
644
645# for more information.
646
647#
648
649Options Indexes FollowSymLinks
650
651
652
653#
654
655# AllowOverride controls what directives may be placed in .htaccess files.
656
657# It can be "All", "None", or any combination of the keywords:
658
659# Options FileInfo AuthConfig Limit
660
661#
662
663AllowOverride None
664
665
666
667#
668
669# Controls who can get stuff from this server.
670
671#
672
673Order allow,deny
674
675Allow from all
676
677
678
679</directory>
680
681
682
683#
684
685# Disable autoindex for the root directory, and present a
686
687# default Welcome page if no other index page is present.
688
689#
690
691<locationmatch "^="" $="">
692
693Options -Indexes
694
695ErrorDocument 403 /error/noindex.html
696
697</locationmatch>
698
699
700
701#
702
703# UserDir: The name of the directory that is appended onto a user's home
704
705# directory if a ~user request is received.
706
707#
708
709# The path to the end user account 'public_html' directory must be
710
711# accessible to the webserver userid. This usually means that ~userid
712
713# must have permissions of 711, ~userid/public_html must have permissions
714
715# of 755, and documents contained therein must be world-readable.
716
717# Otherwise, the client will only receive a "403 Forbidden" message.
718
719#
720
721# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
722
723#
724
725<ifmodule mod_userdir.c="">
726
727#
728
729# UserDir is disabled by default since it can confirm the presence
730
731# of a username on the system (depending on home directory
732
733# permissions).
734
735#
736
737UserDir disable
738
739
740
741#
742
743# To enable requests to /~user/ to serve the user's public_html
744
745# directory, remove the "UserDir disable" line above, and uncomment
746
747# the following line instead:
748
749#
750
751#UserDir public_html
752
753
754
755</ifmodule>
756
757
758
759#
760
761# Control access to UserDir directories. The following is an example
762
763# for a site where these directories are restricted to read-only.
764
765#
766
767#<directory *="" home="" public_html="">
768
769# AllowOverride FileInfo AuthConfig Limit
770
771# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
772
773# <limit get="" options="" post="">
774
775# Order allow,deny
776
777# Allow from all
778
779# </limit>
780
781# <limitexcept get="" options="" post="">
782
783# Order deny,allow
784
785# Deny from all
786
787# </limitexcept>
788
789#</directory>
790
791
792
793#
794
795# DirectoryIndex: sets the file that Apache will serve if a directory
796
797# is requested.
798
799#
800
801# The index.html.var file (a type-map) is used to deliver content-
802
803# negotiated documents. The MultiViews Option can be used for the
804
805# same purpose, but it is much slower.
806
807#
808
809DirectoryIndex index.html index.html.var
810
811
812
813#
814
815# AccessFileName: The name of the file to look for in each directory
816
817# for access control information. See also the AllowOverride directive.
818
819#
820
821AccessFileName .htaccess
822
823
824
825#
826
827# The following lines prevent .htaccess and .htpasswd files from being
828
829# viewed by Web clients.
830
831#
832
833<files "^\\.ht"="" ~="">
834
835Order allow,deny
836
837Deny from all
838
839</files>
840
841
842
843#
844
845# TypesConfig describes where the mime.types file (or equivalent) is
846
847# to be found.
848
849#
850
851TypesConfig /etc/mime.types
852
853
854
855#
856
857# DefaultType is the default MIME type the server will use for a document
858
859# if it cannot otherwise determine one, such as from filename extensions.
860
861# If your server contains mostly text or HTML documents, "text/plain" is
862
863# a good value. If most of your content is binary, such as applications
864
865# or images, you may want to use "application/octet-stream" instead to
866
867# keep browsers from trying to display binary files as though they are
868
869# text.
870
871#
872
873DefaultType text/plain
874
875
876
877#
878
879# The mod_mime_magic module allows the server to use various hints from the
880
881# contents of the file itself to determine its type. The MIMEMagicFile
882
883# directive tells the module where the hint definitions are located.
884
885#
886
887<ifmodule mod_mime_magic.c="">
888
889# MIMEMagicFile /usr/share/magic.mime
890
891MIMEMagicFile conf/magic
892
893</ifmodule>
894
895
896
897#
898
899# HostnameLookups: Log the names of clients or just their IP addresses
900
901# e.g., www.apache.org (on) or 204.62.129.132 (off).
902
903# The default is off because it'd be overall better for the net if people
904
905# had to knowingly turn this feature on, since enabling it means that
906
907# each client request will result in AT LEAST one lookup request to the
908
909# nameserver.
910
911#
912
913HostnameLookups Off
914
915
916
917#
918
919# EnableMMAP: Control whether memory-mapping is used to deliver
920
921# files (assuming that the underlying OS supports it).
922
923# The default is on; turn this off if you serve from NFS-mounted
924
925# filesystems. On some systems, turning it off (regardless of
926
927# filesystem) can improve performance; for details, please see
928
929# http://httpd.apache.org/docs-2.0/mo...html#enablemmap
930
931#
932
933#EnableMMAP off
934
935
936
937#
938
939# EnableSendfile: Control whether the sendfile kernel support is
940
941# used to deliver files (assuming that the OS supports it).
942
943# The default is on; turn this off if you serve from NFS-mounted
944
945# filesystems. Please see
946
947# http://httpd.apache.org/docs-2.0/mo...#enablesendfile
948
949#
950
951#EnableSendfile off
952
953#
954
955
956
957#
958
959# ErrorLog: The location of the error log file.
960
961# If you do not specify an ErrorLog directive within a <virtualhost>
962
963# container, error messages relating to that virtual host will be
964
965# logged here. If you *do* define an error logfile for a <virtualhost>
966
967# container, that host's errors will be logged there and not here.
968
969#
970
971ErrorLog logs/error_log
972
973
974
975#
976
977# LogLevel: Control the number of messages logged to the error_log.
978
979# Possible values include: debug, info, notice, warn, error, crit,
980
981# alert, emerg.
982
983#
984
985LogLevel warn
986
987
988
989#
990
991# The following directives define some format nicknames for use with
992
993# a CustomLog directive (see below).
994
995#
996
997LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
998
999LogFormat "%h %l %u %t \"%r\" %>s %b" common
1000
1001LogFormat "%{Referer}i -> %U" referer
1002
1003LogFormat "%{User-agent}i" agent
1004
1005
1006
1007#
1008
1009# The location and format of the access logfile (Common Logfile Format).
1010
1011# If you do not define any access logfiles within a <virtualhost>
1012
1013# container, they will be logged here. Contrariwise, if you *do*
1014
1015# define per-<virtualhost> access logfiles, transactions will be
1016
1017# logged therein and *not* in this file.
1018
1019#
1020
1021# CustomLog logs/access_log common
1022
1023CustomLog logs/access_log combined
1024
1025
1026
1027#
1028
1029# If you would like to have agent and referer logfiles, uncomment the
1030
1031# following directives.
1032
1033#
1034
1035#CustomLog logs/referer_log referer
1036
1037#CustomLog logs/agent_log agent
1038
1039
1040
1041#
1042
1043# If you prefer a single logfile with access, agent, and referer information
1044
1045# (Combined Logfile Format) you can use the following directive.
1046
1047#
1048
1049#CustomLog logs/access_log combined
1050
1051
1052
1053#
1054
1055# Optionally add a line containing the server version and virtual host
1056
1057# name to server-generated pages (error documents, FTP directory listings,
1058
1059# mod_status and mod_info output etc., but not CGI generated documents).
1060
1061# Set to "EMail" to also include a mailto: link to the ServerAdmin.
1062
1063# Set to one of: On | Off | EMail
1064
1065#
1066
1067ServerSignature On
1068
1069
1070
1071#
1072
1073# Aliases: Add here as many aliases as you need (with no limit). The format is
1074
1075# Alias fakename realname
1076
1077#
1078
1079# Note that if you include a trailing / on fakename then the server will
1080
1081# require it to be present in the URL. So "/icons" isn't aliased in this
1082
1083# example, only "/icons/". If the fakename is slash-terminated, then the
1084
1085# realname must also be slash terminated, and if the fakename omits the
1086
1087# trailing slash, the realname must also omit it.
1088
1089#
1090
1091# We include the /icons/ alias for FancyIndexed directory listings. If you
1092
1093# do not use FancyIndexing, you may comment this out.
1094
1095#
1096
1097Alias /icons/ "/var/www/icons/"
1098
1099<directory "="" icons"="" var="" www="">
1100
1101Options Indexes MultiViews
1102
1103AllowOverride None
1104
1105Order allow,deny
1106
1107Allow from all
1108
1109</directory>
1110
1111
1112
1113#
1114
1115# This should be changed to the ServerRoot/manual/. The alias provides
1116
1117# the manual, even if you choose to move your DocumentRoot. You may comment
1118
1119# this out if you do not care for the documentation.
1120
1121#
1122
1123Alias /manual "/var/www/manual"
1124
1125
1126
1127<directory "="" manual"="" var="" www="">
1128
1129Options Indexes FollowSymLinks MultiViews
1130
1131AllowOverride None
1132
1133Order allow,deny
1134
1135Allow from all
1136
1137</directory>
1138<ifmodule mod_dav_fs.c="">
1139
1140# Location of the WebDAV lock database.
1141
1142DAVLockDB /var/lib/dav/lockdb
1143
1144</ifmodule>
1145
1146
1147
1148#
1149
1150# ScriptAlias: This controls which directories contain server scripts.
1151
1152# ScriptAliases are essentially the same as Aliases, except that
1153
1154# documents in the realname directory are treated as applications and
1155
1156# run by the server when requested rather than as documents sent to the client.
1157
1158# The same rules about trailing "/" apply to ScriptAlias directives as to
1159
1160# Alias.
1161
1162#
1163
1164ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
1165
1166
1167
1168<ifmodule mod_cgid.c="">
1169
1170#
1171
1172# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
1173
1174# for setting UNIX socket for communicating with cgid.
1175
1176#
1177
1178Scriptsock run/httpd.cgid
1179
1180</path></ifmodule>
1181
1182
1183
1184#
1185
1186# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
1187
1188# CGI directory exists, if you have that configured.
1189
1190#
1191
1192<directory "="" cgi-bin"="" var="" www="">
1193
1194AllowOverride None
1195
1196Options None
1197
1198Order allow,deny
1199
1200Allow from all
1201
1202</directory>
1203
1204
1205
1206#
1207
1208# Redirect allows you to tell clients about documents which used to exist in
1209
1210# your server's namespace, but do not anymore. This allows you to tell the
1211
1212# clients where to look for the relocated document.
1213
1214# Example:
1215
1216# Redirect permanent /foo http://www.andsky.com/bar
1217
1218
1219
1220#
1221
1222# Directives controlling the display of server-generated directory listings.
1223
1224#
1225
1226
1227
1228#
1229
1230# FancyIndexing is whether you want fancy directory indexing or standard.
1231
1232# VersionSort is whether files containing version numbers should be
1233
1234# compared in the natural way, so that `apache-1.3.9.tar' is placed before
1235
1236# `apache-1.3.12.tar'.
1237
1238#
1239
1240IndexOptions FancyIndexing VersionSort NameWidth=*
1241
1242
1243
1244#
1245
1246# AddIcon* directives tell the server which icon to show for different
1247
1248# files or filename extensions. These are only displayed for
1249
1250# FancyIndexed directories.
1251
1252#
1253
1254AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
1255
1256
1257
1258AddIconByType (TXT,/icons/text.gif) text/*
1259
1260AddIconByType (IMG,/icons/image2.gif) image/*
1261
1262AddIconByType (SND,/icons/sound2.gif) audio/*
1263
1264AddIconByType (VID,/icons/movie.gif) video/*
1265
1266
1267
1268AddIcon /icons/binary.gif .bin .exe
1269
1270AddIcon /icons/binhex.gif .hqx
1271
1272AddIcon /icons/tar.gif .tar
1273
1274AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
1275
1276AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
1277
1278AddIcon /icons/a.gif .ps .ai .eps
1279
1280AddIcon /icons/layout.gif .html .shtml .htm .pdf
1281
1282AddIcon /icons/text.gif .txt
1283
1284AddIcon /icons/c.gif .c
1285
1286AddIcon /icons/p.gif .pl .py
1287
1288AddIcon /icons/f.gif .for
1289
1290AddIcon /icons/dvi.gif .dvi
1291
1292AddIcon /icons/uuencoded.gif .uu
1293
1294AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
1295
1296AddIcon /icons/tex.gif .tex
1297
1298AddIcon /icons/bomb.gif core
1299
1300
1301
1302AddIcon /icons/back.gif ..
1303
1304AddIcon /icons/hand.right.gif README
1305
1306AddIcon /icons/folder.gif ^^DIRECTORY^^
1307
1308AddIcon /icons/blank.gif ^^BLANKICON^^
1309
1310
1311
1312#
1313
1314# DefaultIcon is which icon to show for files which do not have an icon
1315
1316# explicitly set.
1317
1318#
1319
1320DefaultIcon /icons/unknown.gif
1321
1322
1323
1324#
1325
1326# AddDescription allows you to place a short description after a file in
1327
1328# server-generated indexes. These are only displayed for FancyIndexed
1329
1330# directories.
1331
1332# Format: AddDescription "description" filename
1333
1334#
1335
1336#AddDescription "GZIP compressed document" .gz
1337
1338#AddDescription "tar archive" .tar
1339
1340#AddDescription "GZIP compressed tar archive" .tgz
1341
1342
1343
1344#
1345
1346# ReadmeName is the name of the README file the server will look for by
1347
1348# default, and append to directory listings.
1349
1350#
1351
1352# HeaderName is the name of a file which should be prepended to
1353
1354# directory indexes.
1355
1356ReadmeName README.html
1357
1358HeaderName HEADER.html
1359
1360
1361
1362#
1363
1364# IndexIgnore is a set of filenames which directory indexing should ignore
1365
1366# and not include in the listing. Shell-style wildcarding is permitted.
1367
1368#
1369
1370IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
1371
1372
1373
1374#
1375
1376# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
1377
1378# information on the fly. Note: Not all browsers support this.
1379
1380# Despite the name similarity, the following Add* directives have nothing
1381
1382# to do with the FancyIndexing customization directives above.
1383
1384#
1385
1386AddEncoding x-compress Z
1387
1388AddEncoding x-gzip gz tgz
1389
1390
1391
1392#
1393
1394# DefaultLanguage and AddLanguage allows you to specify the language of
1395
1396# a document. You can then use content negotiation to give a browser a
1397
1398# file in a language the user can understand.
1399
1400#
1401
1402# Specify a default language. This means that all data
1403
1404# going out without a specific language tag (see below) will
1405
1406# be marked with this one. You probably do NOT want to set
1407
1408# this unless you are sure it is correct for all cases.
1409
1410#
1411
1412# * It is generally better to not mark a page as
1413
1414# * being a certain language than marking it with the wrong
1415
1416# * language!
1417
1418#
1419
1420# DefaultLanguage nl
1421
1422#
1423
1424# Note 1: The suffix does not have to be the same as the language
1425
1426# keyword --- those with documents in Polish (whose net-standard
1427
1428# language code is pl) may wish to use "AddLanguage pl .po" to
1429
1430# avoid the ambiguity with the common suffix for perl scripts.
1431
1432#
1433
1434# Note 2: The example entries below illustrate that in some cases
1435
1436# the two character 'Language' abbreviation is not identical to
1437
1438# the two character 'Country' code for its country,
1439
1440# E.g. 'Danmark/dk' versus 'Danish/da'.
1441
1442#
1443
1444# Note 3: In the case of 'ltz' we violate the RFC by using a three char
1445
1446# specifier. There is 'work in progress' to fix this and get
1447
1448# the reference data for rfc1766 cleaned up.
1449
1450#
1451
1452# Danish (da) - Dutch (nl) - English (en) - Estonian (et)
1453
1454# French (fr) - German (de) - Greek-Modern (el)
1455
1456# Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (ko)
1457
1458# Portugese (pt) - Luxembourgeois* (ltz)
1459
1460# Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
1461
1462# Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
1463
1464# Russian (ru) - Croatian (hr)
1465
1466#
1467
1468AddLanguage da .dk
1469
1470AddLanguage nl .nl
1471
1472AddLanguage en .en
1473
1474AddLanguage et .et
1475
1476AddLanguage fr .fr
1477
1478AddLanguage de .de
1479
1480AddLanguage he .he
1481
1482AddLanguage el .el
1483
1484AddLanguage it .it
1485
1486AddLanguage ja .ja
1487
1488AddLanguage pl .po
1489
1490AddLanguage ko .ko
1491
1492AddLanguage pt .pt
1493
1494AddLanguage nn .nn
1495
1496AddLanguage no .no
1497
1498AddLanguage pt-br .pt-br
1499
1500AddLanguage ltz .ltz
1501
1502AddLanguage ca .ca
1503
1504AddLanguage es .es
1505
1506AddLanguage sv .sv
1507
1508AddLanguage cz .cz
1509
1510AddLanguage ru .ru
1511
1512AddLanguage tw .tw
1513
1514AddLanguage zh-tw .tw
1515
1516AddLanguage hr .hr
1517
1518
1519
1520#
1521
1522# LanguagePriority allows you to give precedence to some languages
1523
1524# in case of a tie during content negotiation.
1525
1526#
1527
1528# Just list the languages in decreasing order of preference. We have
1529
1530# more or less alphabetized them here. You probably want to change this.
1531
1532#
1533
1534LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
1535
1536
1537
1538#
1539
1540# ForceLanguagePriority allows you to serve a result page rather than
1541
1542# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
1543
1544# [in case no accepted languages matched the available variants]
1545
1546#
1547
1548ForceLanguagePriority Prefer Fallback
1549
1550
1551
1552#
1553
1554# Specify a default charset for all pages sent out. This is
1555
1556# always a good idea and opens the door for future internationalisation
1557
1558# of your web site, should you ever want it. Specifying it as
1559
1560# a default does little harm; as the standard dictates that a page
1561
1562# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
1563
1564# are merely stating the obvious. There are also some security
1565
1566# reasons in browsers, related to javascript and URL parsing
1567
1568# which encourage you to always set a default char set.
1569
1570#
1571
1572AddDefaultCharset UTF-8
1573
1574
1575
1576#
1577
1578# Commonly used filename extensions to character sets. You probably
1579
1580# want to avoid clashes with the language extensions, unless you
1581
1582# are good at carefully testing your setup after each change.
1583
1584# See http://www.iana.org/assignments/character-sets for the
1585
1586# official list of charset names and their respective RFCs
1587
1588#
1589
1590AddCharset ISO-8859-1 .iso8859-1 .latin1
1591
1592AddCharset ISO-8859-2 .iso8859-2</virtualhost></virtualhost></virtualhost></virtualhost></virtualhost></virtualhost></virtualhost></virtualhost></url:></url:>