#
# Addhandler allows you to map certain file extensions to "handlers ":
# Actions unrelated to filetype. These can be either built into the server
# Or added with the Action Directive (see below)
#
# To use CGI scripts outside of scriptaliased directories:
# (You will also need to add "execcgi" to the "options" directive .)
#
# Addhandler CGI-script. cgi
#
# For files that include their own HTTP headers:
#
# Addhandler send-as-is Asis
#
# For type maps (negotiated resources ):
# (This is enabled by default to allow the Apache "It worked" Page
# To be distributed in multiple versions .)
#
Addhandler type-map VaR
#
# Filters allow you to process content before it is sent to the client.
#
# To parse. shtml files for server-side pair des (SSI ):
# (You will also need to add "includes" to the "options" directive .)
#
Addtype text/html. shtml
Addoutputfilter between des. shtml
#
# Action lets you define media types that will execute a script whenever
# A matching file is called. This eliminates the need for repeated URL
# Pathnames for oft-used CGI File processors.
# Format: Action Media/type/cgi-script/location
# Format: Action Handler-name/cgi-script/location
#
#
# Customizable error responses come in three flavors:
#1) plain text 2) Local redirects 3) External redirects
#
# Some examples:
# Errordocument 500 "the server made a boo ."
# Errordocument 404/missing.html
# Errordocument 404 "/cgi-bin/missing_handler.pl"
# Errordocument 402 http://www.example.com/subscription_info.html
#
#
# Putting this all together, we can internationalize error responses.
#
# We use alias to redirect any/error/HTTP _ <error>. html. var response
# Our collection of by-error message multi-language collections. We use
# Includes to substitute the appropriate text.
#
# You can modify the messages 'appearance without changing any of
# Default HTTP _ <error>. html. var files by adding the line:
#
# Alias/error/include/"/Your/include/path /"
#
# Which allows you to create your own set of files by starting with
#/Var/www/error/include/files and
# Copying them to/Your/include/path/, even on a per-virtualhost basis.
#
Alias/error/"/var/www/error /"
<Ifmodule mod_negotiation.c>
<Ifmodule mod_include.c>
<Directory "/var/www/error">
AllowOverride none
Options IncludesNOEXEC
Addoutputfilter between des 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 following directives modify normal HTTP Response Behavior
# Handle known problems 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 & quot; JDK/1/. 0 & quot; force-response-1.0
#
# The following Directive disables redirects on non-GET requests
# A directory that does not include the trailing slash. This fixes
# Problem with Microsoft webfolders which does not appropriately handle
# Redirects for folders with Dav methods.
# Same deal with Apple'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 Server Status reports generated by mod_status,
# With the URL of http: // 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>
<Location/Server-status>
Sethandler server-status
Order deny, allow
# Deny from all
Allow from basic.10.com.cn
</Location>
#
# Allow Remote Server Configuration Reports, with the URL
# Http: // servername/Server-Info (requires that mod_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 Server directives. uncomment the following lines
# Enable the proxy server:
#
# <Ifmodule mod_proxy.c>
# Proxyrequests on
#
# <Proxy *>
# Order deny, allow
# Deny from all
# Allow from .example.com
# </Proxy>
#
# Enable/disable the handling of HTTP/1.1 "via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing via: headers)
# Set to one of: Off | on | full | Block
#
# Proxyvia on
#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
# <Ifmodule mod_disk_cache.c>
# Cacheenable Disk/
# Cacheroot "/var/Cache/mod_proxy"
# </Ifmodule>
#
# </Ifmodule>
# End of proxy directives.
### Section 3: Virtual Hosts
#
# Virtualhost: if you want to maintain multiple domains/hostnames on your
# Machine you can setup virtualhost containers for them. Most deployments
# Use Only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the Directives below.
#
# Please see the documentation
# <URL: http://httpd.apache.org/docs/2.2/vhosts/>
# For further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# Configuration.
#
# Use name-based virtual hosting.
#
Namevirtualhost*: 8080
#
# Note: namevirtualhost cannot be used without a port specifier
# (E.g.: 80) If mod_ssl is being used, due to the nature of
# SSL protocol.
#
#
# Virtualhost example:
# Almost any Apache directive may go into a virtualhost container.
# The first virtualhost section is used for requests without a known
# Server name.
#
# <Virtualhost *: 80>
# Serveradmin webmaster@dummy-host.example.com
# DocumentRoot/www/docs/dummy-host.example.com
# Servername dummy-host.example.com
# Errorlog logs/dummy-host.example.com-error_log
# Customlog logs/dummy-host.example.com-access_log common
# </Virtualhost>
<Virtualhost *: 8080>
DocumentRoot/basic.10.com.cn
Servername basic.10.com.cn
Serveralias basic.300033.info
Directoryindex index.html index. php
Adddefacharcharset gb2312
Proxypass/HQ http: // 172.20.1.176/flashq/
Proxypassreverse/HQ http: // 172.20.1.176/flashq/
Proxypass/cgiwt http: // 172.20.1.176/cgiwt/
Proxypassreverse/cgiwt http: // 172.20.1.176/cgiwt/
Proxypass/szse http: // 172.20.1.176/szse/
Proxypassreverse/szse http: // 172.20.1.176/szse/
Proxypass/SSE http: // 172.20.1.176/SSE/
Proxypassreverse/SSE http: // 172.20.1.176/SSE/
Proxypass/csc108 http: // 172.20.1.176/csc108/
Proxypassreverse/csc108 http: // 172.20.1.176/csc108/
Proxypass/crawler http: // 192.168.0.122/crawler/
Proxypassreverse/crawler http: // 192.168.0.122/crawler/
Proxypass/Xihu http: // 172.20.1.176/Xihu/
Proxypassreverse/Xihu http: // 172.20.1.176/Xihu/
Proxypass/Alexa http: // 172.20.1.176/alexa33/
Proxypassreverse/Alexa http: // 172.20.1.176/alexa33/
# Proxypass/BBS http: // 192.168.0.12
# Proxypassreverse/BBS http: // 192.168.0.12
Proxypass/how.on http://www.10.com.cn: 10002/how.on/
Proxypassreverse/how.on http://www.10.com.cn: 10002/how.on/
# Proxypass/phonestat http://phonestat.hexin.cn/
# Proxypassreverse/phonestat http://phonestat.hexin.cn/
# Proxypass/kill http: // 172.20.1.176/kill/
# Proxypassreverse/kill http: // 172.20.1.176/kill/
# Proxypass/bugfree http: // 172.20.1.247/bugfree/
# Proxypassreverse/bugfree http: // 172.20.1.247/bugfree/
# Proxypass/STAT http: // 192.168.0.43/
# Proxypassreverse/STAT http: // 192.168.0.43/
<Directory/basic.10.com.cn>
Errordocument 404 "/redirect. php"
Expiresbytype text/html A300
</Directory>
<Directory/basic.10.com.cn/concept>
Expiresactive on
Expiresbytype text/html A300
Expiresbytype text/CSS a2592000
Expiresbytype application/X-JavaScript a86400
Expiresbytype application/X-Shockwave-flash a86400
Expiresbytype image/* a2592000
Expiresdefault A300
</Directory>
</Virtualhost>