apache

来源:互联网 发布:网络投票收费标准 编辑:程序博客网 时间:2024/06/05 15:47

一、  linuxapache的配置文件详解(/etc/httpd/conf/httpd.conf)

二、  为用户设置个人主页(linux专有http://url/~username

1.修改容器(IfModule mod_userdir.c

UserDir disable改为UserDir disable 文档目录(在/home/用户/***

然后再用户/***目录下去创建用户个人的web页面

三、  设置虚拟目录(除了web默认访问的文档目录以外,apache可以访问的目录都叫做虚拟目录)

例:为192.168.2.3设置虚拟目录名字为test 对应的真实目录位置为/mydir/

1.   创建/mydir目录

2.   mydir中创建测试页面index.html

3.   httpd.conf中添加Alias/test/ “/mydir/”

 

四、  虚拟主机(在同一台服务器上虚拟出不同IP或不同域名或不同端口号的主机)

1、       虚拟不同IP的主机

apache中虚拟两个ip地址,192.168.2.4-----àip1

                                                       192.168.2.5------àip2

步骤:(1)创建目录/var/www/ip1/var/www/ip2

          2)在两个目录中分别添加index.html文件

          3)更改httpd.conf文件中Virtualhost的容器

<VirtualHost192.168.2.4>

      DocumentRoot/var/www/ip1

          DirectoryIndex index.html

          ServerAdmin root@localhost

          ServerName ip1

      ErrorLoglogs/ip1_logs

      CustomLoglogs/ip1_access_log common

</VirtualHost>

 

<VirtualHost192.168.2.5>

          ServerAdmin root@localhost

      DocumentRoot/var/www/ip2

          DirectoryIndex index.html

          ServerName ip2

      ErrorLoglogs/ip2_logs

      CustomLoglogs/ip2_access_log common

</VirtualHost>

4)重启httpd服务

2.基于不同域名的虚拟主机(DNS)(user1.nihao.com(user2.nihao.com)

步骤:(1)创建/var/www/user1/var/www/user2

          2)分别添加index.html文档

          3)更改DNS配置

          User1.nihao.com.    IN       A192.168.2.3

User2.nihao.com.   IN       A 192.168.2.3

(4)修改httpd.conf文件

NameVirtualhost    192.168.2.3

 

<VirtualHost192.168.2.3>

      DocumentRoot/var/www/ip1

          DirectoryIndex index.html

          ServerAdmin root@localhost

           ServerName user.nihao.com

      ErrorLoglogs/ip1_logs

      CustomLoglogs/ip1_access_log common

</VirtualHost>

 

<VirtualHost192.168.2.3>

          ServerAdmin root@localhost

      DocumentRoot/var/www/ip2

          DirectoryIndex index.html

           ServerName user2.nihao.com

      ErrorLoglogs/ip2_logs

      CustomLoglogs/ip2_access_log common

</VirtualHost>

 

4.   基于不同端口号的虚拟主机

步骤:(1)为不同的端口文件夹创建index.Html文件

2)更改httpd.conf文件

Listen 8080

Listen 8090

<VirtualHost192.168.2.3:8080>

          ServerAdmin root@localhost

      DocumentRoot/var/www/port8080

          DirectoryIndex index.html

           ServerName user2.nihao.com

      ErrorLoglogs/ip2_logs

      CustomLoglogs/ip2_access_log common

</VirtualHost>

<VirtualHost192.168.2.3:8090>

          ServerAdmin root@localhost

      DocumentRoot/var/www/port8090

          DirectoryIndex index.html

           ServerName user2.nihao.com

      ErrorLoglogs/ip2_logs

      CustomLoglogs/ip2_access_log common

</VirtualHost>

 

 

 

 

 

ServerRoot"/etc/httpd"    //httpd主安装目录

PidFilerun/httpd.pid        //httpd启动的进程

Timeout 120                      //超时

KeepAlive Off                   //保持活动

MaxKeepAliveRequests100

KeepAliveTimeout15

<IfModuleprefork.c>--------------------------一个容器

StartServers      8

MinSpareServers   5

MaxSpareServers  20

ServerLimit     256

MaxClients      1000(默认为256 //表示客户端最大连接数

MaxRequestsPerChild 4000

</IfModule>

<IfModuleworker.c>

StartServers        2

MaxClients        150

MinSpareThreads    25

MaxSpareThreads    75

ThreadsPerChild    25

MaxRequestsPerChild 0

</IfModule>

Listen 80           //监听端口号(端口号区分不同的应用(网站))

 

LoadModuleauth_basic_module modules/mod_auth_basic.so

LoadModuleauth_digest_module modules/mod_auth_digest.so

LoadModuleauthn_file_module modules/mod_authn_file.so

LoadModuleauthn_alias_module modules/mod_authn_alias.so

LoadModuleauthn_anon_module modules/mod_authn_anon.so

LoadModuleauthn_dbm_module modules/mod_authn_dbm.so

LoadModuleauthn_default_module modules/mod_authn_default.so

LoadModuleauthz_host_module modules/mod_authz_host.so

LoadModule authz_user_modulemodules/mod_authz_user.so

LoadModuleauthz_owner_module modules/mod_authz_owner.so

LoadModuleauthz_groupfile_module modules/mod_authz_groupfile.so

LoadModuleauthz_dbm_module modules/mod_authz_dbm.so

LoadModuleauthz_default_module modules/mod_authz_default.so

LoadModuleldap_module modules/mod_ldap.so

LoadModuleauthnz_ldap_module modules/mod_authnz_ldap.so

LoadModuleinclude_module modules/mod_include.so

LoadModulelog_config_module modules/mod_log_config.so

LoadModulelogio_module modules/mod_logio.so

LoadModuleenv_module modules/mod_env.so

LoadModuleext_filter_module modules/mod_ext_filter.so

LoadModulemime_magic_module modules/mod_mime_magic.so

LoadModuleexpires_module modules/mod_expires.so

LoadModuledeflate_module modules/mod_deflate.so

LoadModuleheaders_module modules/mod_headers.so

LoadModuleusertrack_module modules/mod_usertrack.so

LoadModulesetenvif_module modules/mod_setenvif.so

LoadModulemime_module modules/mod_mime.so

LoadModuledav_module modules/mod_dav.so

LoadModulestatus_module modules/mod_status.so

LoadModuleautoindex_module modules/mod_autoindex.so

LoadModuleinfo_module modules/mod_info.so

LoadModuledav_fs_module modules/mod_dav_fs.so

LoadModulevhost_alias_module modules/mod_vhost_alias.so

LoadModulenegotiation_module modules/mod_negotiation.so

LoadModuledir_module modules/mod_dir.so

LoadModuleactions_module modules/mod_actions.so

LoadModulespeling_module modules/mod_speling.so

LoadModuleuserdir_module modules/mod_userdir.so

LoadModulealias_module modules/mod_alias.so

LoadModulerewrite_module modules/mod_rewrite.so

LoadModuleproxy_module modules/mod_proxy.so

LoadModuleproxy_balancer_module modules/mod_proxy_balancer.so

LoadModuleproxy_ftp_module modules/mod_proxy_ftp.so

LoadModuleproxy_http_module modules/mod_proxy_http.so

LoadModuleproxy_connect_module modules/mod_proxy_connect.so

LoadModulecache_module modules/mod_cache.so

LoadModulesuexec_module modules/mod_suexec.so

LoadModuledisk_cache_module modules/mod_disk_cache.so

LoadModulefile_cache_module modules/mod_file_cache.so

LoadModulemem_cache_module modules/mod_mem_cache.so

LoadModulecgi_module modules/mod_cgi.so

LoadModuleversion_module modules/mod_version.so

 

Includeconf.d/*.conf                        //包含conf.d文件夹中所有的conf文件(一般为服务器语言的配置文件,如:php.conf

User apache

Group apache

ServerAdminroot@localhost    //设置管理员邮箱

UseCanonicalNameOff

DocumentRoot "/var/www/html"          //设置web服务器的文件目录

 

<Directory/>

   Options FollowSymLinks

   AllowOverride None

</Directory>

 

<Directory"/var/www/html">                          //设置文档目录的属性

   Options Indexes FollowSymLinks

   AllowOverride None

   Order allow,deny

   Allow from all

</Directory>

<IfModulemod_userdir.c>

      UserDir disable

</IfModule>

 

#<Directory/home/*/public_html>

#   AllowOverride FileInfo AuthConfig Limit

#   Options MultiViews IndexesSymLinksIfOwnerMatch IncludesNoExec

#   <Limit GET POST OPTIONS>

#       Order allow,deny

#       Allow from all

#   </Limit>

#   <LimitExcept GET POST OPTIONS>

#       Order deny,allow

#       Deny from all

#   </LimitExcept>

#</Directory>

DirectoryIndexindex.html index.html.var       //服务器默认打开的主页名称

 

#

# AccessFileName:The name of the file to look for in each directory

# for additionalconfiguration directives. See also theAllowOverride

# directive.

#

AccessFileName.htaccess

 

#

# The followinglines prevent .htaccess and .htpasswd files from being

# viewed by Webclients.

#

<Files ~"^\.ht">

   Order allow,deny

   Deny from all

</Files>

 

#

# TypesConfigdescribes where the mime.types file (or equivalent) is

# to be found.

#

TypesConfig/etc/mime.types

 

#

# DefaultType isthe default MIME type the server will use for a document

# if it cannototherwise determine one, such as from filename extensions.

# If your servercontains mostly text or HTML documents, "text/plain" is

# a goodvalue. If most of your content isbinary, such as applications

# or images, youmay want to use "application/octet-stream" instead to

# keep browsersfrom trying to display binary files as though they are

# text.

#

DefaultTypetext/plain

 

#

# Themod_mime_magic module allows the server to use various hints from the

# contents of thefile itself to determine its type. TheMIMEMagicFile

# directive tellsthe module where the hint definitions are located.

#

<IfModulemod_mime_magic.c>

#  MIMEMagicFile /usr/share/magic.mime

   MIMEMagicFile conf/magic

</IfModule>

 

#

# HostnameLookups:Log the names of clients or just their IP addresses

# e.g.,www.apache.org (on) or 204.62.129.132 (off).

# The default isoff because it'd be overall better for the net if people

# had to knowinglyturn this feature on, since enabling it means that

# each clientrequest will result in AT LEAST one lookup request to the

# nameserver.

#

HostnameLookupsOff

 

#

# EnableMMAP:Control whether memory-mapping is used to deliver

# files (assumingthat the underlying OS supports it).

# The default ison; turn this off if you serve from NFS-mounted

#filesystems. On some systems, turning itoff (regardless of

# filesystem) canimprove performance; for details, please see

#http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap

#

#EnableMMAP off

 

#

# EnableSendfile:Control whether the sendfile kernel support is

# used to deliverfiles (assuming that the OS supports it).

# The default ison; turn this off if you serve from NFS-mounted

#filesystems. Please see

#http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile

#

#EnableSendfileoff

 

#

# ErrorLog: Thelocation of the error log file.

# If you do notspecify an ErrorLog directive within a <VirtualHost>

# container, errormessages relating to that virtual host will be

# loggedhere. If you *do* define an errorlogfile for a <VirtualHost>

# container, thathost's errors will be logged there and not here.

#

ErrorLoglogs/error_log

 

#

# LogLevel:Control the number of messages logged to the error_log.

# Possible valuesinclude: debug, info, notice, warn, error, crit,

# alert, emerg.

#

LogLevel warn

 

#

# The followingdirectives define some format nicknames for use with

# a CustomLogdirective (see below).

#

LogFormat "%h %l %u %t \"%r\" %>s %b\"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

 

#"combinedio" includes actual counts of actual bytes received (%I) andsent (%O); this

# requires themod_logio module to be loaded.

#LogFormat "%h %l %u %t \"%r\" %>s %b\"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

 

#

# The location andformat of the access logfile (Common Logfile Format).

# If you do notdefine any access logfiles within a <VirtualHost>

# container, theywill be logged here. Contrariwise, ifyou *do*

# defineper-<VirtualHost> access logfiles, transactions will be

# logged thereinand *not* in this file.

#

#CustomLoglogs/access_log common

 

#

# If you wouldlike to have separate agent and referer logfiles, uncomment

# the followingdirectives.

#

#CustomLoglogs/referer_log referer

#CustomLoglogs/agent_log agent

 

#

# For a singlelogfile with access, agent, and referer information

# (CombinedLogfile Format), use the following directive:

#

CustomLog logs/access_logcombined

 

#

# Optionally add aline containing the server version and virtual host

# name toserver-generated pages (internal error documents, FTP directory

# listings,mod_status and mod_info output etc., but not CGI generated

# documents or custom error documents).

# Set to"EMail" to also include a mailto: link to the ServerAdmin.

# Set to oneof: On | Off | EMail

#

ServerSignature On

 

#

# Aliases: Addhere as many aliases as you need (with no limit). The format is

# Alias fakenamerealname

#

# Note that if youinclude a trailing / on fakename then the server will

# require it to bepresent in the URL. So"/icons" isn't aliased in this

# example, only"/icons/". If the fakename isslash-terminated, then the

# realname mustalso be slash terminated, and if the fakename omits the

# trailing slash,the realname must also omit it.

#

# We include the/icons/ alias for FancyIndexed directory listings. If you

# do not useFancyIndexing, you may comment this out.

#

Alias /icons/ "/var/www/icons/"

 

<Directory"/var/www/icons">

   Options Indexes MultiViews

   AllowOverride None

   Order allow,deny

   Allow from all

</Directory>

 

#

# WebDAV moduleconfiguration section.

#

<IfModulemod_dav_fs.c>

   # Location of the WebDAV lock database.

   DAVLockDB /var/lib/dav/lockdb

</IfModule>

 

#

# ScriptAlias:This controls which directories contain server scripts.

# ScriptAliasesare essentially the same as Aliases, except that

# documents in therealname directory are treated as applications and

# run by theserver when requested rather than as documents sent to the client.

# The same rulesabout trailing "/" apply to ScriptAlias directives as to

# Alias.

#

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

 

#

#"/var/www/cgi-bin" should be changed to whatever your ScriptAliased

# CGI directoryexists, if you have that configured.

#

<Directory"/var/www/cgi-bin">

   AllowOverride None

   Options None

   Order allow,deny

   Allow from all

</Directory>

 

#

# Redirect allowsyou to tell clients about documents which used to exist in

# your server'snamespace, but do not anymore. This allows you to tell the

# clients where tolook for the relocated document.

# Example:

# Redirectpermanent /foo http://www.example.com/bar

 

#

# Directivescontrolling the display of server-generated directory listings.

#

 

#

# IndexOptions:Controls the appearance of server-generated directory

# listings.

#

IndexOptionsFancyIndexing VersionSort NameWidth=* HTMLTable

 

#

# AddIcon*directives tell the server which icon to show for different

# files orfilename extensions. These are onlydisplayed for

# FancyIndexeddirectories.

#

AddIconByEncoding(CMP,/icons/compressed.gif) x-compress x-gzip

 

AddIconByType(TXT,/icons/text.gif) text/*

AddIconByType(IMG,/icons/image2.gif) image/*

AddIconByType(SND,/icons/sound2.gif) audio/*

AddIconByType(VID,/icons/movie.gif) video/*

 

AddIcon/icons/binary.gif .bin .exe

AddIcon/icons/binhex.gif .hqx

AddIcon/icons/tar.gif .tar

AddIcon/icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv

AddIcon/icons/compressed.gif .Z .z .tgz .gz .zip

AddIcon/icons/a.gif .ps .ai .eps

AddIcon/icons/layout.gif .html .shtml .htm .pdf

AddIcon/icons/text.gif .txt

AddIcon/icons/c.gif .c

AddIcon/icons/p.gif .pl .py

AddIcon/icons/f.gif .for

AddIcon/icons/dvi.gif .dvi

AddIcon /icons/uuencoded.gif.uu

AddIcon/icons/script.gif .conf .sh .shar .csh .ksh .tcl

AddIcon/icons/tex.gif .tex

AddIcon/icons/bomb.gif core

 

AddIcon/icons/back.gif ..

AddIcon/icons/hand.right.gif README

AddIcon/icons/folder.gif ^^DIRECTORY^^

AddIcon /icons/blank.gif^^BLANKICON^^

 

#

# DefaultIcon iswhich icon to show for files which do not have an icon

# explicitly set.

#

DefaultIcon/icons/unknown.gif

 

#

# AddDescriptionallows you to place a short description after a file in

# server-generatedindexes. These are only displayed forFancyIndexed

# directories.

# Format:AddDescription "description" filename

#

#AddDescription"GZIP compressed document" .gz

#AddDescription"tar archive" .tar

#AddDescription"GZIP compressed tar archive" .tgz

 

#

# ReadmeName isthe name of the README file the server will look for by

# default, andappend to directory listings.

#

# HeaderName isthe name of a file which should be prepended to

# directoryindexes.

ReadmeNameREADME.html

HeaderNameHEADER.html

 

#

# IndexIgnore is aset of filenames which directory indexing should ignore

# and not includein the listing. Shell-style wildcardingis permitted.

#

IndexIgnore .??**~ *# HEADER* README* RCS CVS *,v *,t

 

#

# DefaultLanguageand AddLanguage allows you to specify the language of

# a document. Youcan then use content negotiation to give a browser a

# file in alanguage the user can understand.

#

# Specify adefault language. This means that all data

# going outwithout a specific language tag (see below) will

# be marked withthis one. You probably do NOT want to set

# this unless youare sure it is correct for all cases.

#

# * It isgenerally better to not mark a page as

# * being acertain language than marking it with the wrong

# * language!

#

# DefaultLanguagenl

#

# Note 1: Thesuffix does not have to be the same as the language

# keyword ---those with documents in Polish (whose net-standard

# language code ispl) may wish to use "AddLanguage pl .po" to

# avoid theambiguity with the common suffix for perl scripts.

#

# Note 2: Theexample entries below illustrate that in some cases

# the twocharacter 'Language' abbreviation is not identical to

# the twocharacter 'Country' code for its country,

# E.g.'Danmark/dk' versus 'Danish/da'.

#

# Note 3: In thecase of 'ltz' we violate the RFC by using a three char

# specifier. Thereis 'work in progress' to fix this and get

# the referencedata for rfc1766 cleaned up.

#

# Catalan (ca) -Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)

# English (en) -Esperanto (eo) - Estonian (et) - French (fr) - German (de)

# Greek-Modern(el) - Hebrew (he) - Italian (it) - Japanese (ja)

# Korean (ko) -Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)

# Norwegian (no) -Polish (pl) - Portugese (pt)

# BrazilianPortuguese (pt-BR) - Russian (ru) - Swedish (sv)

# SimplifiedChinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)

#

AddLanguage ca .ca

AddLanguage cs .cz.cs

AddLanguage da .dk

AddLanguage de .de

AddLanguage el .el

AddLanguage en .en

AddLanguage eo .eo

AddLanguage es .es

AddLanguage et .et

AddLanguage fr .fr

AddLanguage he .he

AddLanguage hr .hr

AddLanguage it .it

AddLanguage ja .ja

AddLanguage ko .ko

AddLanguage ltz.ltz

AddLanguage nl .nl

AddLanguage nn .nn

AddLanguage no .no

AddLanguage pl .po

AddLanguage pt .pt

AddLanguage pt-BR.pt-br

AddLanguage ru .ru

AddLanguage sv .sv

AddLanguage zh-CN.zh-cn

AddLanguage zh-TW.zh-tw

 

#

# LanguagePriorityallows you to give precedence to some languages

# in case of a tieduring content negotiation.

#

# Just list thelanguages in decreasing order of preference. We have

# more or lessalphabetized them here. You probably want to change this.

#

LanguagePriorityen ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru svzh-CN zh-TW

 

#

#ForceLanguagePriority allows you to serve a result page rather than

# MULTIPLE CHOICES(Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)

# [in case noaccepted languages matched the available variants]

#

ForceLanguagePriorityPrefer Fallback

 

#

# Specify adefault charset for all content served; this enables

# interpretationof all content as UTF-8 by default. Touse the

# default browserchoice (ISO-8859-1), or to allow the META tags

# in HTML contentto override this choice, comment out this

# directive:

#

AddDefaultCharsetUTF-8

 

#

# AddType allowsyou to add to or override the MIME configuration

# file mime.typesfor specific file types.

#

#AddTypeapplication/x-tar .tgz

 

#

# AddEncodingallows you to have certain browsers uncompress

# information onthe fly. Note: Not all browsers support this.

# Despite the namesimilarity, the following Add* directives have nothing

# to do with theFancyIndexing customization directives above.

#

#AddEncodingx-compress .Z

#AddEncodingx-gzip .gz .tgz

 

# If theAddEncoding directives above are commented-out, then you

# probably shoulddefine those extensions to indicate media types:

#

AddTypeapplication/x-compress .Z

AddTypeapplication/x-gzip .gz .tgz

 

#

# AddHandlerallows you to map certain file extensions to "handlers":

# actions unrelatedto filetype. These can be either built into the server

# or added withthe Action directive (see below)

#

# To use CGIscripts outside of ScriptAliased directories:

# (You will alsoneed to add "ExecCGI" to the "Options" directive.)

#

#AddHandler cgi-script.cgi

 

#

# For files thatinclude their own HTTP headers:

#

#AddHandlersend-as-is asis

 

#

# For type maps(negotiated resources):

# (This is enabledby default to allow the Apache "It Worked" page

# to be distributed in multiple languages.)

#

AddHandlertype-map var

 

#

# Filters allowyou to process content before it is sent to the client.

#

# To parse .shtmlfiles for server-side includes (SSI):

# (You will alsoneed to add "Includes" to the "Options" directive.)

#

AddType text/html.shtml

AddOutputFilterINCLUDES .shtml

 

#

# Action lets youdefine media types that will execute a script whenever

# a matching fileis called. This eliminates the need for repeated URL

# pathnames foroft-used CGI file processors.

# Format: Actionmedia/type /cgi-script/location

# Format: Actionhandler-name /cgi-script/location

#

 

#

# Customizableerror responses come in three flavors:

# 1) plain text 2)local redirects 3) external redirects

#

# Some examples:

#ErrorDocument 500"The server made a boo boo."

#ErrorDocument 404/missing.html

#ErrorDocument 404"/cgi-bin/missing_handler.pl"

#ErrorDocument 402http://www.example.com/subscription_info.html

#

 

#

# Putting this alltogether, we can internationalize error responses.

#

# We use Alias toredirect any /error/HTTP_<error>.html.var response to

# our collectionof by-error message multi-language collections. We use

# includes tosubstitute the appropriate text.

#

# You can modifythe messages' appearance without changing any of the

# defaultHTTP_<error>.html.var files by adding the line:

#

#  Alias /error/include/"/your/include/path/"

#

# which allows youto create your own set of files by starting with the

#/var/www/error/include/ files and

# copying them to/your/include/path/, even on a per-VirtualHost basis.

#

 

Alias /error/ "/var/www/error/"

 

<IfModulemod_negotiation.c>

<IfModulemod_include.c>

   <Directory"/var/www/error">

       AllowOverride None

       Options IncludesNoExec

       AddOutputFilter Includes html

       AddHandler type-map var

       Order allow,deny

       Allow from all

       LanguagePriority en es de fr

       ForceLanguagePriority Prefer Fallback

   </Directory>

 

#   ErrorDocument 400/error/HTTP_BAD_REQUEST.html.var

#   ErrorDocument 401/error/HTTP_UNAUTHORIZED.html.var

#   ErrorDocument 403/error/HTTP_FORBIDDEN.html.var

#   ErrorDocument 404/error/HTTP_NOT_FOUND.html.var

#   ErrorDocument 405/error/HTTP_METHOD_NOT_ALLOWED.html.var

#   ErrorDocument 408/error/HTTP_REQUEST_TIME_OUT.html.var

#   ErrorDocument 410 /error/HTTP_GONE.html.var

#   ErrorDocument 411/error/HTTP_LENGTH_REQUIRED.html.var

#   ErrorDocument 412/error/HTTP_PRECONDITION_FAILED.html.var

#   ErrorDocument 413/error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var

#   ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var

#   ErrorDocument 415/error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var

#   ErrorDocument 500/error/HTTP_INTERNAL_SERVER_ERROR.html.var

#   ErrorDocument 501/error/HTTP_NOT_IMPLEMENTED.html.var

#   ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var

#   ErrorDocument 503/error/HTTP_SERVICE_UNAVAILABLE.html.var

#   ErrorDocument 506/error/HTTP_VARIANT_ALSO_VARIES.html.var

 

</IfModule>

</IfModule>

 

#

# The followingdirectives modify normal HTTP response behavior to

# handle knownproblems with browser implementations.

#

BrowserMatch"Mozilla/2" nokeepalive

BrowserMatch"MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

BrowserMatch"RealPlayer 4\.0" force-response-1.0

BrowserMatch"Java/1\.0" force-response-1.0

BrowserMatch"JDK/1\.0" force-response-1.0

 

#

# The followingdirective disables redirects on non-GET requests for

# a directory thatdoes not include the trailing slash. This fixes a

# problem withMicrosoft WebFolders which does not appropriately handle

# redirects forfolders with DAV methods.

# Same deal withApple's DAV filesystem and Gnome VFS support for DAV.

#

BrowserMatch"Microsoft Data Access Internet Publishing Provider"redirect-carefully

BrowserMatch"MS FrontPage" redirect-carefully

BrowserMatch"^WebDrive" redirect-carefully

BrowserMatch"^WebDAVFS/1.[0123]" redirect-carefully

BrowserMatch"^gnome-vfs/1.0" redirect-carefully

BrowserMatch"^XML Spy" redirect-carefully

BrowserMatch"^Dreamweaver-WebDAV-SCM1" redirect-carefully

 

#

# Allow serverstatus reports generated by mod_status,

# with the URL ofhttp://servername/server-status

# Change the".example.com" to match your domain to enable.

#

#<Location/server-status>

#   SetHandler server-status

#   Order deny,allow

#   Deny from all

#   Allow from .example.com

#</Location>

 

#

# Allow remoteserver configuration reports, with the URL of

# http://servername/server-info (requires thatmod_info.c be loaded).

# Change the".example.com" to match your domain to enable.

#

#<Location/server-info>

#   SetHandler server-info

#   Order deny,allow

#   Deny from all

#   Allow from .example.com

#</Location>

 

#

# Proxy Serverdirectives. Uncomment the following lines to

# enable the proxyserver:

#

#<IfModulemod_proxy.c>

#ProxyRequests On

#

#<Proxy *>

#   Order deny,allow

#   Deny from all

#   Allow from .example.com

#</Proxy>

 

#

# Enable/disablethe handling of HTTP/1.1 "Via:" headers.

#("Full" adds the server version; "Block" removes alloutgoing Via: headers)

# Set to one of:Off | On | Full | Block

#

#ProxyVia On

 

#

# To enable acache of proxied content, uncomment the following lines.

# Seehttp://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.

#

#<IfModulemod_disk_cache.c>

#  CacheEnable disk /

#  CacheRoot "/var/cache/mod_proxy"

#</IfModule>

#

 

#</IfModule>

# End of proxydirectives.

 

### Section 3:Virtual Hosts

#

# VirtualHost: Ifyou want to maintain multiple domains/hostnames on your

# machine you cansetup VirtualHost containers for them. Most configurations

# use only name-basedvirtual hosts so the server doesn't need to worry about

# IP addresses.This is indicated by the asterisks in the directives below.

#

# Please see thedocumentation at

#<URL:http://httpd.apache.org/docs/2.2/vhosts/>

# for furtherdetails before you try to setup virtual hosts.

#

# You may use thecommand line option '-S' to verify your virtual host

# configuration.

 

#

# Use name-basedvirtual hosting.

#

#NameVirtualHost*:80

#

# NOTE:NameVirtualHost cannot be used without a port specifier

# (e.g. :80) ifmod_ssl is being used, due to the nature of the

# SSL protocol.

#

 

#

# VirtualHostexample:

# Almost anyApache directive may go into a VirtualHost container.

# The firstVirtualHost section is used for requests without a known

# server name.

#

#<VirtualHost*:80>

#   ServerAdminwebmaster@dummy-host.example.com

#   DocumentRoot/www/docs/dummy-host.example.com

#   ServerNamedummy-host.example.com

#   ErrorLoglogs/dummy-host.example.com-error_log

#   CustomLog logs/dummy-host.example.com-access_logcommon

#</VirtualHost>