我的apache的问题,请帮我看看!

由 babo 在 03-19-2003 16:41 发表:

我的apache的问题,请帮我看看!

我输入httpd -k start结果输出的结果如下

[root@linux root]# httpd -k start

[Wed Mar 19 16:37:09 2003] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!

[root@linux root]#

不果好像我访问我的apache server可以出现测试页.请帮我看看到底怎么回事?

我的配置文件如下

httpd.conf - configuration for the Apache web server

Generated automatically... if you edit manually, the changes will be lost

the next time you run "apacheconfig".

Section 1: Global Environment

The directives in this section affect the overall operation of Apache,

such as the number of concurrent requests it can handle or where it

can find its configuration files.

Don't give away too much information about all the subcomponents

we are running. Comment out this line if you don't mind remote sites

finding out what major optional modules you are running

ServerTokens OS

ServerRoot: The top of the directory tree under which the server's

configuration, error, and log files are kept.

NOTE! If you intend to place this on an NFS (or otherwise network)

mounted filesystem then please read the LockFile documentation

(available at

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