apache在nt下的问题

由 chutianyin 在 08-05-2004 16:09 发表:

apache在nt下的问题

不知道nt的下面安装了apache以后,别人在访问这个上面的网站的时候用的是什么权限来访问的,我测试了一下,在ntfs分区只允许system和administrators组访问的情况下,只需要一个php文件就可以任意的删除,上传,修改这个分区里面的任何内容!


由 chutianyin 在 08-05-2004 16:58 发表:


经测试,用的居然是system帐号,晕死!


由 Snoopy 在 08-05-2004 16:58 发表:


windows下应该是guest吧


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 chutianyin 在 08-05-2004 17:43 发表:


我测试以后是用的system帐号,guest帐号已经禁用!


由 chutianyin 在 08-05-2004 17:46 发表:


我将文件的安全属性中的所有的组和帐户全部去掉,只留下system帐户,不给予写入权限的时候,就不好修改那个文件了,一旦加上写入权限,就可以编辑那个文件了,郁闷啊!


由 Snoopy 在 08-05-2004 17:50 发表:


windows下的apache是怎样的 ? 跟linux的一样的吧 ?

有nobody用户的吗 ?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 chutianyin 在 08-05-2004 18:01 发表:


不一样,缺少很多设置,user和group的设置就没有


由 chutianyin 在 08-05-2004 18:06 发表:


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