httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clayton Dillard <claytondill...@gmail.com>
Subject [users@httpd] Apache 2.2.3 - Delayed response
Date Tue, 01 Apr 2008 03:01:04 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
All,<br>
&nbsp;&nbsp;&nbsp; Thank you for taking the time to review my question.<br>
<br>
After a fresh boot (or a reboot) our Apache server returns pages very
quickly to the client browser.&nbsp; We are running SugarCRM and the
response time is usually around .29 seconds.&nbsp; This high performance
lasts for some unpredictable period of time.&nbsp; Then we start seeing page
response times of around 1.3 to 2.5 seconds.<br>
<br>
The odd thing is that I've run tcpdump on the web server while making a
request for a URL from a client, when we see the performance drop.&nbsp; As
soon as the client requests the URL, tcpdump shows the connections but
the Apache server does not receive/return the request for about 2
seconds after that.&nbsp; For clarification, it takes about 2 seconds after
seeing the connection in tcpdump before I see the server writing to the
access_log.<br>
<br>
We have another CentOS VM running the same version of httpd and this
box does not have this problem.&nbsp; One difference is that on the
non-problematic box, php was compiled by hand whereas on the
problematic server it was installed via yum from the CentOS repos.&nbsp;
Another difference is that I've configured httpd to log to syslog on
the problematic server and not on the non-problematic server.<br>
<br>
<b>Environment:</b><br>
CentOS 5.1 - XenServer VM<br>
Linux rdusugarweb1.rpstechnology.com 2.6.18-53.1.14.el5xen #1 SMP Wed
Mar 5 12:39:19 EST 2008 i686 i686 i386 GNU/Linux<br>
<br>
Serving up PHP and other files off of NFS mount.<br>
<br>
Server version: Apache/2.2.3<br>
Server built:&nbsp;&nbsp; Jan 15 2008 20:33:30<br>
Server's Module Magic Number: 20051115:3<br>
Server loaded:&nbsp; APR 1.2.8, APR-Util 1.2.8<br>
Compiled using: APR 1.2.7, APR-Util 1.2.7<br>
Architecture:&nbsp;&nbsp; 32-bit<br>
Server MPM:&nbsp;&nbsp;&nbsp;&nbsp; Prefork<br>
&nbsp; threaded:&nbsp;&nbsp;&nbsp;&nbsp; no<br>
&nbsp;&nbsp;&nbsp; forked:&nbsp;&nbsp;&nbsp;&nbsp; yes (variable process count)<br>
Server compiled with....<br>
&nbsp;-D APACHE_MPM_DIR="server/mpm/prefork"<br>
&nbsp;-D APR_HAS_SENDFILE<br>
&nbsp;-D APR_HAS_MMAP<br>
&nbsp;-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)<br>
&nbsp;-D APR_USE_SYSVSEM_SERIALIZE<br>
&nbsp;-D APR_USE_PTHREAD_SERIALIZE<br>
&nbsp;-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT<br>
&nbsp;-D APR_HAS_OTHER_CHILD<br>
&nbsp;-D AP_HAVE_RELIABLE_PIPED_LOGS<br>
&nbsp;-D DYNAMIC_MODULE_LIMIT=128<br>
&nbsp;-D HTTPD_ROOT="/etc/httpd"<br>
&nbsp;-D SUEXEC_BIN="/usr/sbin/suexec"<br>
&nbsp;-D DEFAULT_PIDLOG="logs/httpd.pid"<br>
&nbsp;-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"<br>
&nbsp;-D DEFAULT_LOCKFILE="logs/accept.lock"<br>
&nbsp;-D DEFAULT_ERRORLOG="logs/error_log"<br>
&nbsp;-D AP_TYPES_CONFIG_FILE="conf/mime.types"<br>
&nbsp;-D SERVER_CONFIG_FILE="conf/httpd.conf"<br>
<br>
<br>
PHP 5.1.6 (cli) (built: Sep 20 2007 10:16:10) <br>
<br>
#<br>
# This is the main Apache server configuration file.&nbsp; It contains the<br>
# configuration directives that give the server its instructions.<br>
# See <a class="moz-txt-link-rfc1738" href="http://httpd.apache.org/docs/2.2/">&lt;URL:http://httpd.apache.org/docs/2.2/&gt;</a> for detailed
information.<br>
# In particular, see<br>
# <a class="moz-txt-link-rfc1738" href="http://httpd.apache.org/docs/2.2/mod/directives.html">&lt;URL:http://httpd.apache.org/docs/2.2/mod/directives.html&gt;</a><br>
# for a discussion of each configuration directive.<br>
#<br>
#<br>
# Do NOT simply read the instructions in here without understanding<br>
# what they do.&nbsp; They're here only as hints or reminders.&nbsp; If you are
unsure<br>
# consult the online docs. You have been warned.&nbsp; <br>
#<br>
# The configuration directives are grouped into three basic sections:<br>
#&nbsp; 1. Directives that control the operation of the Apache server
process as a<br>
#&nbsp;&nbsp;&nbsp;&nbsp; whole (the 'global environment').<br>
#&nbsp; 2. Directives that define the parameters of the 'main' or 'default'
server,<br>
#&nbsp;&nbsp;&nbsp;&nbsp; which responds to requests that aren't handled by a virtual host.<br>
#&nbsp;&nbsp;&nbsp;&nbsp; These directives also provide default values for the settings<br>
#&nbsp;&nbsp;&nbsp;&nbsp; of all virtual hosts.<br>
#&nbsp; 3. Settings for virtual hosts, which allow Web requests to be sent to<br>
#&nbsp;&nbsp;&nbsp;&nbsp; different IP addresses or hostnames and have them handled by the<br>
#&nbsp;&nbsp;&nbsp;&nbsp; same Apache server process.<br>
#<br>
# Configuration and logfile names: If the filenames you specify for many<br>
# of the server's control files begin with "/" (or "drive:/" for
Win32), the<br>
# server will use that explicit path.&nbsp; If the filenames do *not* begin<br>
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"<br>
# with ServerRoot set to "/etc/httpd" will be interpreted by the<br>
# server as "/etc/httpd/logs/foo.log".<br>
#<br>
<br>
### Section 1: Global Environment<br>
#<br>
# The directives in this section affect the overall operation of Apache,<br>
# such as the number of concurrent requests it can handle or where it<br>
# can find its configuration files.<br>
#<br>
<br>
#<br>
# Don't give away too much information about all the subcomponents<br>
# we are running.&nbsp; Comment out this line if you don't mind remote sites<br>
# finding out what major optional modules you are running<br>
ServerTokens OS<br>
<br>
#<br>
# ServerRoot: The top of the directory tree under which the server's<br>
# configuration, error, and log files are kept.<br>
#<br>
# NOTE!&nbsp; If you intend to place this on an NFS (or otherwise network)<br>
# mounted filesystem then please read the LockFile documentation<br>
# (available at
<a class="moz-txt-link-rfc1738" href="http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile">&lt;URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile&gt;</a>);<br>
# you will save yourself a lot of trouble.<br>
#<br>
# Do NOT add a slash at the end of the directory path.<br>
#<br>
ServerRoot "/etc/httpd"<br>
<br>
#<br>
# PidFile: The file in which the server should record its process<br>
# identification number when it starts.<br>
#<br>
PidFile run/httpd.pid<br>
<br>
#<br>
# Timeout: The number of seconds before receives and sends time out.<br>
#<br>
Timeout 120<br>
<br>
#<br>
# KeepAlive: Whether or not to allow persistent connections (more than<br>
# one request per connection). Set to "Off" to deactivate.<br>
#<br>
KeepAlive Off<br>
<br>
#<br>
# MaxKeepAliveRequests: The maximum number of requests to allow<br>
# during a persistent connection. Set to 0 to allow an unlimited amount.<br>
# We recommend you leave this number high, for maximum performance.<br>
#<br>
MaxKeepAliveRequests 100<br>
<br>
#<br>
# KeepAliveTimeout: Number of seconds to wait for the next request from
the<br>
# same client on the same connection.<br>
#<br>
KeepAliveTimeout 15<br>
<br>
##<br>
## Server-Pool Size Regulation (MPM specific)<br>
## <br>
<br>
# prefork MPM<br>
# StartServers: number of server processes to start<br>
# MinSpareServers: minimum number of server processes which are kept
spare<br>
# MaxSpareServers: maximum number of server processes which are kept
spare<br>
# ServerLimit: maximum value for MaxClients for the lifetime of the
server<br>
# MaxClients: maximum number of server processes allowed to start<br>
# MaxRequestsPerChild: maximum number of requests a server process
serves<br>
<br>
# Apache Default Settings<br>
#&lt;IfModule prefork.c&gt;<br>
#StartServers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8<br>
#MinSpareServers&nbsp;&nbsp;&nbsp; 5<br>
#MaxSpareServers&nbsp;&nbsp; 20<br>
#ServerLimit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 256<br>
#MaxClients&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 256<br>
#MaxRequestsPerChild&nbsp; 4000<br>
#&lt;/IfModule&gt;<br>
<br>
# Custom Settings<br>
&lt;IfModule prefork.c&gt;<br>
StartServers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16<br>
MinSpareServers&nbsp;&nbsp;&nbsp; 10<br>
MaxSpareServers&nbsp;&nbsp;&nbsp; 30<br>
ServerLimit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 256<br>
MaxClients&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 256<br>
MaxRequestsPerChild&nbsp; 4000<br>
&lt;/IfModule&gt;<br>
<br>
<br>
# worker MPM<br>
# StartServers: initial number of server processes to start<br>
# MaxClients: maximum number of simultaneous client connections<br>
# MinSpareThreads: minimum number of worker threads which are kept spare<br>
# MaxSpareThreads: maximum number of worker threads which are kept spare<br>
# ThreadsPerChild: constant number of worker threads in each server
process<br>
# MaxRequestsPerChild: maximum number of requests a server process
serves<br>
<br>
# Apache Default Settings<br>
#&lt;IfModule worker.c&gt;<br>
#StartServers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2<br>
#MaxClients&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 150<br>
#MinSpareThreads&nbsp;&nbsp;&nbsp;&nbsp; 25<br>
#MaxSpareThreads&nbsp;&nbsp;&nbsp;&nbsp; 75 <br>
#ThreadsPerChild&nbsp;&nbsp;&nbsp;&nbsp; 25<br>
#MaxRequestsPerChild&nbsp; 0<br>
#&lt;/IfModule&gt;<br>
<br>
# Custom Settings<br>
#&lt;IfModule worker.c&gt;<br>
#StartServers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6<br>
#MaxClients&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 <br>
#MinSpareThreads&nbsp;&nbsp;&nbsp;&nbsp; 25<br>
#MaxSpareThreads&nbsp;&nbsp;&nbsp;&nbsp; 75<br>
#ThreadsPerChild&nbsp;&nbsp;&nbsp;&nbsp; 32 <br>
#MaxRequestsPerChild&nbsp; 100<br>
#&lt;/IfModule&gt;<br>
<br>
#<br>
# Listen: Allows you to bind Apache to specific IP addresses and/or<br>
# ports, in addition to the default. See also the &lt;VirtualHost&gt;<br>
# directive.<br>
#<br>
# Change this to Listen on specific IP addresses as shown below to <br>
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)<br>
#<br>
#Listen 12.34.56.78:80<br>
Listen 80<br>
<br>
#<br>
# Dynamic Shared Object (DSO) Support<br>
#<br>
# To be able to use the functionality of a module which was built as a
DSO you<br>
# have to place corresponding `LoadModule' lines at this location so the<br>
# directives contained in it are actually available _before_ they are
used.<br>
# Statically compiled modules (those listed by `httpd -l') do not need<br>
# to be loaded here.<br>
#<br>
# Example:<br>
# LoadModule foo_module modules/mod_foo.so<br>
#<br>
LoadModule php5_module modules/libphp5.so<br>
#LoadModule mod_unique_id_module modules/mod_unique_id.so<br>
LoadModule auth_basic_module modules/mod_auth_basic.so<br>
#LoadModule auth_digest_module modules/mod_auth_digest.so<br>
LoadModule authn_file_module modules/mod_authn_file.so<br>
LoadModule authn_alias_module modules/mod_authn_alias.so<br>
#LoadModule authn_anon_module modules/mod_authn_anon.so<br>
#LoadModule authn_dbm_module modules/mod_authn_dbm.so<br>
LoadModule authn_default_module modules/mod_authn_default.so<br>
LoadModule authz_host_module modules/mod_authz_host.so<br>
#LoadModule authz_user_module modules/mod_authz_user.so<br>
#LoadModule authz_owner_module modules/mod_authz_owner.so<br>
#LoadModule authz_groupfile_module modules/mod_authz_groupfile.so<br>
#LoadModule authz_dbm_module modules/mod_authz_dbm.so<br>
#LoadModule authz_default_module modules/mod_authz_default.so<br>
#LoadModule ldap_module modules/mod_ldap.so<br>
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so<br>
LoadModule include_module modules/mod_include.so<br>
LoadModule log_config_module modules/mod_log_config.so<br>
#LoadModule logio_module modules/mod_logio.so<br>
LoadModule env_module modules/mod_env.so<br>
LoadModule ext_filter_module modules/mod_ext_filter.so<br>
#LoadModule mime_magic_module modules/mod_mime_magic.so<br>
LoadModule expires_module modules/mod_expires.so<br>
LoadModule deflate_module modules/mod_deflate.so<br>
LoadModule headers_module modules/mod_headers.so<br>
#LoadModule usertrack_module modules/mod_usertrack.so<br>
LoadModule setenvif_module modules/mod_setenvif.so<br>
LoadModule mime_module modules/mod_mime.so<br>
#LoadModule dav_module modules/mod_dav.so<br>
LoadModule status_module modules/mod_status.so<br>
LoadModule autoindex_module modules/mod_autoindex.so<br>
LoadModule info_module modules/mod_info.so<br>
#LoadModule dav_fs_module modules/mod_dav_fs.so<br>
LoadModule vhost_alias_module modules/mod_vhost_alias.so<br>
LoadModule negotiation_module modules/mod_negotiation.so<br>
LoadModule dir_module modules/mod_dir.so<br>
#LoadModule actions_module modules/mod_actions.so<br>
#LoadModule speling_module modules/mod_speling.so<br>
#LoadModule userdir_module modules/mod_userdir.so<br>
LoadModule alias_module modules/mod_alias.so<br>
LoadModule rewrite_module modules/mod_rewrite.so<br>
LoadModule proxy_module modules/mod_proxy.so<br>
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so<br>
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so<br>
#LoadModule proxy_http_module modules/mod_proxy_http.so<br>
#LoadModule proxy_connect_module modules/mod_proxy_connect.so<br>
LoadModule cache_module modules/mod_cache.so<br>
#LoadModule suexec_module modules/mod_suexec.so<br>
LoadModule disk_cache_module modules/mod_disk_cache.so<br>
LoadModule file_cache_module modules/mod_file_cache.so<br>
LoadModule mem_cache_module modules/mod_mem_cache.so<br>
#LoadModule cgi_module modules/mod_cgi.so<br>
#LoadModule version_module modules/mod_version.so<br>
<br>
#<br>
# The following modules are not loaded by default:<br>
#<br>
#LoadModule cern_meta_module modules/mod_cern_meta.so<br>
#LoadModule asis_module modules/mod_asis.so<br>
<br>
#<br>
# Load config files from the config directory "/etc/httpd/conf.d".<br>
#<br>
#Include conf.d/*.conf<br>
<br>
#<br>
# ExtendedStatus controls whether Apache will generate "full" status<br>
# information (ExtendedStatus On) or just basic information
(ExtendedStatus<br>
# Off) when the "server-status" handler is called. The default is Off.<br>
#<br>
ExtendedStatus On<br>
<br>
#<br>
# If you wish httpd to run as a different user or group, you must run<br>
# httpd as root initially and it will switch.&nbsp; <br>
#<br>
# User/Group: The name (or #number) of the user/group to run httpd as.<br>
#&nbsp; . On SCO (ODT 3) use "User nouser" and "Group nogroup".<br>
#&nbsp; . On HPUX you may not be able to use shared memory as nobody, and the<br>
#&nbsp;&nbsp;&nbsp; suggested workaround is to create a user www and use that user.<br>
#&nbsp; NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)<br>
#&nbsp; when the value of (unsigned)Group is above 60000; <br>
#&nbsp; don't use Group #-1 on these systems!<br>
#<br>
User apache<br>
Group apache<br>
<br>
### Section 2: 'Main' server configuration<br>
#<br>
# The directives in this section set up the values used by the 'main'<br>
# server, which responds to any requests that aren't handled by a<br>
# &lt;VirtualHost&gt; definition.&nbsp; These values also provide defaults
for<br>
# any &lt;VirtualHost&gt; containers you may define later in the file.<br>
#<br>
# All of these directives may appear inside &lt;VirtualHost&gt;
containers,<br>
# in which case these default settings will be overridden for the<br>
# virtual host being defined.<br>
#<br>
<br>
#<br>
# ServerAdmin: Your address, where problems with the server should be<br>
# e-mailed.&nbsp; This address appears on some server-generated pages, such<br>
# as error documents.&nbsp; e.g. <a class="moz-txt-link-abbreviated" href="mailto:admin@your-domain.com">admin@your-domain.com</a><br>
#<br>
ServerAdmin <a class="moz-txt-link-abbreviated" href="mailto:hostmaster@me.com">hostmaster@me.com</a><br>
<br>
#<br>
# Disable some HTTP Methods we don't like<br>
TraceEnable off<br>
<br>
#<br>
# ServerName gives the name and port that the server uses to identify
itself.<br>
# This can often be determined automatically, but we recommend you
specify<br>
# it explicitly to prevent problems during startup.<br>
#<br>
# If this is not set to valid DNS name for your host, server-generated<br>
# redirections will not work.&nbsp; See also the UseCanonicalName directive.<br>
#<br>
# If your host doesn't have a registered DNS name, enter its IP address
here.<br>
# You will have to access it by its address anyway, and this will make <br>
# redirections work in a sensible way.<br>
#<br>
#ServerName <a class="moz-txt-link-abbreviated" href="http://www.example.com:80">www.example.com:80</a><br>
<br>
#<br>
# UseCanonicalName: Determines how Apache constructs self-referencing <br>
# URLs and the SERVER_NAME and SERVER_PORT variables.<br>
# When set "Off", Apache will use the Hostname and Port supplied<br>
# by the client.&nbsp; When set "On", Apache will use the value of the<br>
# ServerName directive.<br>
#<br>
UseCanonicalName Off<br>
<br>
#<br>
# DocumentRoot: The directory out of which you will serve your<br>
# documents. By default, all requests are taken from this directory, but<br>
# symbolic links and aliases may be used to point to other locations.<br>
#<br>
#DocumentRoot "/var/www/html"<br>
DocumentRoot "/mnt/htdocs"<br>
<br>
#<br>
# Each directory to which Apache has access can be configured with
respect<br>
# to which services and features are allowed and/or disabled in that<br>
# directory (and its subdirectories). <br>
#<br>
# First, we configure the "default" to be a very restrictive set of <br>
# features.&nbsp; <br>
#<br>
&lt;Directory /&gt;<br>
#&nbsp;&nbsp;&nbsp; Order Deny,Allow<br>
#&nbsp;&nbsp;&nbsp; Deny from All<br>
DirectoryIndex index.html index.php<br>
&nbsp;&nbsp;&nbsp; AllowOverride None<br>
# BEGIN SUGARCRM RESTRICTIONS<br>
RedirectMatch ^(.*)/sugarcrm.log* <a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/emailman.log <a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/not_imported_(.*).txt
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/XTemplate/(.*)/(.*).php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/data/(.*).php <a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/examples/(.*).php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/include/(.*).php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/include/(.*)/(.*).php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/log4php/(.*).php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/log4php/(.*)/(.*).php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/metadata/(.*)/(.*).php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/modules/(.*)/(.*).php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/soap/(.*).php <a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
RedirectMatch ^(.*)/emailmandelivery.php
<a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
# END SUGARCRM RESTRICTIONS<br>
&lt;/Directory&gt;<br>
<br>
&lt;Directory /mnt/htdocs&gt;<br>
&nbsp;&nbsp;&nbsp; #RedirectPermanent / <a class="moz-txt-link-freetext" href="http://www.me.com/content/view/85/109/">http://www.me.com/content/view/85/109/</a><br>
&nbsp;&nbsp;&nbsp; #RewriteEngine On<br>
&nbsp;&nbsp;&nbsp; #RewriteCond %{SERVER_NAME} =mycrm.me.com<br>
&nbsp;&nbsp;&nbsp; #RewriteRule ^(.*) <a class="moz-txt-link-freetext" href="https://%">https://%</a>{HTTP_HOST}%{REQUEST_URI}<br>
&nbsp;&nbsp;&nbsp; Options -Indexes FollowSymLinks<br>
&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&nbsp;&nbsp;&nbsp; DirectoryIndex index.php index.html<br>
&nbsp;&nbsp;&nbsp; php_admin_value open_basedir /mnt/htdocs/:/var/www/apc/:/tmp/<br>
&lt;/Directory&gt;<br>
<br>
&lt;Directory /mnt/htdocs/rsms&gt;<br>
&nbsp;&nbsp;&nbsp; Order deny,allow<br>
&nbsp;&nbsp;&nbsp; Deny from all<br>
&nbsp;&nbsp;&nbsp; Allow from localhost<br>
&nbsp;&nbsp;&nbsp; Allow from 127.0.0.1<br>
&lt;/Directory&gt;<br>
#<br>
# Note that from this point forward you must specifically allow<br>
# particular features to be enabled - so if something's not working as<br>
# you might expect, make sure that you have specifically enabled it<br>
# below.<br>
#<br>
<br>
#<br>
# This should be changed to whatever you set DocumentRoot to.<br>
#<br>
<br>
#<br>
# UserDir: The name of the directory that is appended onto a user's home<br>
# directory if a ~user request is received.<br>
#<br>
# The path to the end user account 'public_html' directory must be<br>
# accessible to the webserver userid.&nbsp; This usually means that ~userid<br>
# must have permissions of 711, ~userid/public_html must have
permissions<br>
# of 755, and documents contained therein must be world-readable.<br>
# Otherwise, the client will only receive a "403 Forbidden" message.<br>
#<br>
# See also: <a class="moz-txt-link-freetext" href="http://httpd.apache.org/docs/misc/FAQ.html#forbidden">http://httpd.apache.org/docs/misc/FAQ.html#forbidden</a><br>
#<br>
&lt;IfModule mod_userdir.c&gt;<br>
&nbsp;&nbsp;&nbsp; #<br>
&nbsp;&nbsp;&nbsp; # UserDir is disabled by default since it can confirm the presence<br>
&nbsp;&nbsp;&nbsp; # of a username on the system (depending on home directory<br>
&nbsp;&nbsp;&nbsp; # permissions).<br>
&nbsp;&nbsp;&nbsp; #<br>
&nbsp;&nbsp;&nbsp; UserDir disable<br>
<br>
&nbsp;&nbsp;&nbsp; #<br>
&nbsp;&nbsp;&nbsp; # To enable requests to /~user/ to serve the user's public_html<br>
&nbsp;&nbsp;&nbsp; # directory, remove the "UserDir disable" line above, and uncomment<br>
&nbsp;&nbsp;&nbsp; # the following line instead:<br>
&nbsp;&nbsp;&nbsp; # <br>
&nbsp;&nbsp;&nbsp; #UserDir public_html<br>
<br>
&lt;/IfModule&gt;<br>
<br>
#<br>
# Control access to UserDir directories.&nbsp; The following is an example<br>
# for a site where these directories are restricted to read-only.<br>
#<br>
#&lt;Directory /home/*/public_html&gt;<br>
#&nbsp;&nbsp;&nbsp; AllowOverride FileInfo AuthConfig Limit<br>
#&nbsp;&nbsp;&nbsp; Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec<br>
#&nbsp;&nbsp;&nbsp; &lt;Limit GET POST OPTIONS&gt;<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br>
#&nbsp;&nbsp;&nbsp; &lt;/Limit&gt;<br>
#&nbsp;&nbsp;&nbsp; &lt;LimitExcept GET POST OPTIONS&gt;<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order deny,allow<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Deny from all<br>
#&nbsp;&nbsp;&nbsp; &lt;/LimitExcept&gt;<br>
#&lt;/Directory&gt;<br>
<br>
#<br>
# DirectoryIndex: sets the file that Apache will serve if a directory<br>
# is requested.<br>
#<br>
# The index.html.var file (a type-map) is used to deliver content-<br>
# negotiated documents.&nbsp; The MultiViews Option can be used for the <br>
# same purpose, but it is much slower.<br>
#<br>
DirectoryIndex index.php<br>
<br>
#<br>
# AccessFileName: The name of the file to look for in each directory<br>
# for additional configuration directives.&nbsp; See also the AllowOverride<br>
# directive.<br>
#<br>
AccessFileName .htaccess<br>
<br>
#<br>
# The following lines prevent .htaccess and .htpasswd files from being <br>
# viewed by Web clients. <br>
#<br>
&lt;Files ~ "^\.ht"&gt;<br>
&nbsp;&nbsp;&nbsp; Order allow,deny<br>
&nbsp;&nbsp;&nbsp; Deny from all<br>
&lt;/Files&gt;<br>
<br>
#<br>
# TypesConfig describes where the mime.types file (or equivalent) is<br>
# to be found.<br>
#<br>
TypesConfig /etc/mime.types<br>
<br>
#<br>
# DefaultType is the default MIME type the server will use for a
document<br>
# if it cannot otherwise determine one, such as from filename
extensions.<br>
# If your server contains mostly text or HTML documents, "text/plain" is<br>
# a good value.&nbsp; If most of your content is binary, such as applications<br>
# or images, you may want to use "application/octet-stream" instead to<br>
# keep browsers from trying to display binary files as though they are<br>
# text.<br>
#<br>
#DefaultType text/plain<br>
DefaultType application/octet-stream<br>
<br>
#<br>
# The mod_mime_magic module allows the server to use various hints from
the<br>
# contents of the file itself to determine its type.&nbsp; The MIMEMagicFile<br>
# directive tells the module where the hint definitions are located.<br>
#<br>
&lt;IfModule mod_mime_magic.c&gt;<br>
#&nbsp;&nbsp; MIMEMagicFile /usr/share/magic.mime<br>
&nbsp;&nbsp;&nbsp; MIMEMagicFile conf/magic<br>
&lt;/IfModule&gt;<br>
<br>
#<br>
# HostnameLookups: Log the names of clients or just their IP addresses<br>
# e.g., <a class="moz-txt-link-abbreviated" href="http://www.apache.org">www.apache.org</a> (on) or 204.62.129.132 (off).<br>
# The default is off because it'd be overall better for the net if
people<br>
# had to knowingly turn this feature on, since enabling it means that<br>
# each client request will result in AT LEAST one lookup request to the<br>
# nameserver.<br>
#<br>
HostnameLookups Off<br>
<br>
#<br>
# EnableMMAP: Control whether memory-mapping is used to deliver<br>
# files (assuming that the underlying OS supports it).<br>
# The default is on; turn this off if you serve from NFS-mounted <br>
# filesystems.&nbsp; On some systems, turning it off (regardless of<br>
# filesystem) can improve performance; for details, please see<br>
# <a class="moz-txt-link-freetext" href="http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap">http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap</a><br>
#<br>
EnableMMAP off<br>
<br>
#<br>
# EnableSendfile: Control whether the sendfile kernel support is <br>
# used to deliver files (assuming that the OS supports it). <br>
# The default is on; turn this off if you serve from NFS-mounted <br>
# filesystems.&nbsp; Please see<br>
# <a class="moz-txt-link-freetext" href="http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile">http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile</a><br>
#<br>
EnableSendfile off<br>
<br>
#<br>
# ErrorLog: The location of the error log file.<br>
# If you do not specify an ErrorLog directive within a
&lt;VirtualHost&gt;<br>
# container, error messages relating to that virtual host will be<br>
# logged here.&nbsp; If you *do* define an error logfile for a
&lt;VirtualHost&gt;<br>
# container, that host's errors will be logged there and not here.<br>
#<br>
ErrorLog logs/error_log<br>
ErrorLog syslog:local5.error<br>
<br>
#<br>
# LogLevel: Control the number of messages logged to the error_log.<br>
# Possible values include: debug, info, notice, warn, error, crit,<br>
# alert, emerg.<br>
#<br>
LogLevel notice <br>
<br>
#<br>
# The following directives define some format nicknames for use with<br>
# a CustomLog directive (see below).<br>
#<br>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined<br>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br>
LogFormat "%{Referer}i -&gt; %U" referer<br>
LogFormat "%{User-agent}i" agent<br>
<br>
# "combinedio" includes actual counts of actual bytes received (%I) and
sent (%O); this<br>
# requires the mod_logio module to be loaded.<br>
#LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"
\"%{User-Agent}i\" %I %O" combinedio<br>
<br>
#<br>
# The location and format of the access logfile (Common Logfile Format).<br>
# If you do not define any access logfiles within a &lt;VirtualHost&gt;<br>
# container, they will be logged here.&nbsp; Contrariwise, if you *do*<br>
# define per-&lt;VirtualHost&gt; access logfiles, transactions will be<br>
# logged therein and *not* in this file.<br>
#<br>
#CustomLog logs/access_log common<br>
<br>
#<br>
# If you would like to have separate agent and referer logfiles,
uncomment<br>
# the following directives.<br>
#<br>
#CustomLog logs/referer_log referer<br>
#CustomLog logs/agent_log agent<br>
<br>
#<br>
# For a single logfile with access, agent, and referer information<br>
# (Combined Logfile Format), use the following directive:<br>
#<br>
SetEnvIf Remote_Addr "10\.20\.5\.*" dontlog<br>
SetEnvIf Remote_Addr "10\.10\.*" dontlog<br>
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog<br>
SetEnvIf Request_URI "^/favicon\.ico$" dontlog<br>
SetEnvIf Request_URI \.gif dontlog<br>
SetEnvIf Request_URI \.jpg dontlog<br>
SetEnvIf Request_URI \.png dontlog<br>
CustomLog logs/access_log combined env=!dontlog<br>
CustomLog "|/usr/bin/logger -p local5.info" combined env=!dontlog<br>
#CustomLog |/etc/httpd/apache_syslog combined env=!dontlog<br>
<br>
#<br>
# Optionally add a line containing the server version and virtual host<br>
# name to server-generated pages (internal error documents, FTP
directory<br>
# listings, mod_status and mod_info output etc., but not CGI generated<br>
# documents or custom error documents).<br>
# Set to "EMail" to also include a mailto: link to the ServerAdmin.<br>
# Set to one of:&nbsp; On | Off | EMail<br>
#<br>
ServerSignature Off<br>
<br>
#<br>
# Aliases: Add here as many aliases as you need (with no limit). The
format is <br>
# Alias fakename realname<br>
#<br>
# Note that if you include a trailing / on fakename then the server will<br>
# require it to be present in the URL.&nbsp; So "/icons" isn't aliased in
this<br>
# example, only "/icons/".&nbsp; If the fakename is slash-terminated, then
the <br>
# realname must also be slash terminated, and if the fakename omits the
<br>
# trailing slash, the realname must also omit it.<br>
#<br>
# We include the /icons/ alias for FancyIndexed directory listings.&nbsp; If
you<br>
# do not use FancyIndexing, you may comment this out.<br>
#<br>
#Alias /icons/ "/var/www/icons/"<br>
Alias /apc "/var/www/apc/"<br>
&lt;Directory "/var/www/apc"&gt;<br>
&nbsp;&nbsp;&nbsp; Order deny,allow<br>
&nbsp;&nbsp;&nbsp; Deny from all<br>
&nbsp;&nbsp;&nbsp; Allow from localhost<br>
&nbsp;&nbsp;&nbsp; Allow from 127.0.0.1<br>
&lt;/Directory&gt;<br>
<br>
<br>
#&lt;Directory "/var/www/icons"&gt;<br>
#&nbsp;&nbsp;&nbsp; Options Indexes MultiViews<br>
#&nbsp;&nbsp;&nbsp; AllowOverride None<br>
#&nbsp;&nbsp;&nbsp; Order allow,deny<br>
#&nbsp;&nbsp;&nbsp; Allow from all<br>
#&lt;/Directory&gt;<br>
<br>
#<br>
# WebDAV module configuration section.<br>
# <br>
&lt;IfModule mod_dav_fs.c&gt;<br>
&nbsp;&nbsp;&nbsp; # Location of the WebDAV lock database.<br>
&nbsp;&nbsp;&nbsp; DAVLockDB /var/lib/dav/lockdb<br>
&lt;/IfModule&gt;<br>
<br>
#<br>
# ScriptAlias: This controls which directories contain server scripts.<br>
# ScriptAliases are essentially the same as Aliases, except that<br>
# documents in the realname directory are treated as applications and<br>
# run by the server when requested rather than as documents sent to the
client.<br>
# The same rules about trailing "/" apply to ScriptAlias directives as
to<br>
# Alias.<br>
#<br>
#ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"<br>
<br>
#<br>
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased<br>
# CGI directory exists, if you have that configured.<br>
#<br>
#&lt;Directory "/var/www/cgi-bin"&gt;<br>
#&nbsp;&nbsp;&nbsp; AllowOverride None<br>
#&nbsp;&nbsp;&nbsp; Options None<br>
#&nbsp;&nbsp;&nbsp; Order allow,deny<br>
#&nbsp;&nbsp;&nbsp; Allow from all<br>
#&lt;/Directory&gt;<br>
<br>
#<br>
# Redirect allows you to tell clients about documents which used to
exist in<br>
# your server's namespace, but do not anymore. This allows you to tell
the<br>
# clients where to look for the relocated document.<br>
# Example:<br>
# Redirect permanent /foo <a class="moz-txt-link-freetext" href="http://www.example.com/bar">http://www.example.com/bar</a><br>
<br>
#<br>
# Directives controlling the display of server-generated directory
listings.<br>
#<br>
<br>
#<br>
# IndexOptions: Controls the appearance of server-generated directory<br>
# listings.<br>
#<br>
#IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable<br>
<br>
#<br>
# AddIcon* directives tell the server which icon to show for different<br>
# files or filename extensions.&nbsp; These are only displayed for<br>
# FancyIndexed directories.<br>
#<br>
#AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip<br>
<br>
#AddIconByType (TXT,/icons/text.gif) text/*<br>
#AddIconByType (IMG,/icons/image2.gif) image/*<br>
#AddIconByType (SND,/icons/sound2.gif) audio/*<br>
#AddIconByType (VID,/icons/movie.gif) video/*<br>
<br>
#AddIcon /icons/binary.gif .bin .exe<br>
#AddIcon /icons/binhex.gif .hqx<br>
#AddIcon /icons/tar.gif .tar<br>
#AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv<br>
#AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip<br>
#AddIcon /icons/a.gif .ps .ai .eps<br>
#AddIcon /icons/layout.gif .html .shtml .htm .pdf<br>
#AddIcon /icons/text.gif .txt<br>
#AddIcon /icons/c.gif .c<br>
#AddIcon /icons/p.gif .pl .py<br>
#AddIcon /icons/f.gif .for<br>
#AddIcon /icons/dvi.gif .dvi<br>
#AddIcon /icons/uuencoded.gif .uu<br>
#AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl<br>
#AddIcon /icons/tex.gif .tex<br>
#AddIcon /icons/bomb.gif core<br>
#<br>
#AddIcon /icons/back.gif ..<br>
#AddIcon /icons/hand.right.gif README<br>
#AddIcon /icons/folder.gif ^^DIRECTORY^^<br>
#AddIcon /icons/blank.gif ^^BLANKICON^^<br>
<br>
#<br>
# DefaultIcon is which icon to show for files which do not have an icon<br>
# explicitly set.<br>
#<br>
#DefaultIcon /icons/unknown.gif<br>
<br>
#<br>
# AddDescription allows you to place a short description after a file in<br>
# server-generated indexes.&nbsp; These are only displayed for FancyIndexed<br>
# directories.<br>
# Format: AddDescription "description" filename<br>
#<br>
#AddDescription "GZIP compressed document" .gz<br>
#AddDescription "tar archive" .tar<br>
#AddDescription "GZIP compressed tar archive" .tgz<br>
<br>
#<br>
# ReadmeName is the name of the README file the server will look for by<br>
# default, and append to directory listings.<br>
#<br>
# HeaderName is the name of a file which should be prepended to<br>
# directory indexes. <br>
#ReadmeName README.html<br>
#HeaderName HEADER.html<br>
<br>
#<br>
# IndexIgnore is a set of filenames which directory indexing should
ignore<br>
# and not include in the listing.&nbsp; Shell-style wildcarding is permitted.<br>
#<br>
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t<br>
<br>
#<br>
# DefaultLanguage and AddLanguage allows you to specify the language of
<br>
# a document. You can then use content negotiation to give a browser a <br>
# file in a language the user can understand.<br>
#<br>
# Specify a default language. This means that all data<br>
# going out without a specific language tag (see below) will <br>
# be marked with this one. You probably do NOT want to set<br>
# this unless you are sure it is correct for all cases.<br>
#<br>
# * It is generally better to not mark a page as <br>
# * being a certain language than marking it with the wrong<br>
# * language!<br>
#<br>
# DefaultLanguage nl<br>
#<br>
# Note 1: The suffix does not have to be the same as the language<br>
# keyword --- those with documents in Polish (whose net-standard<br>
# language code is pl) may wish to use "AddLanguage pl .po" to<br>
# avoid the ambiguity with the common suffix for perl scripts.<br>
#<br>
# Note 2: The example entries below illustrate that in some cases <br>
# the two character 'Language' abbreviation is not identical to <br>
# the two character 'Country' code for its country,<br>
# E.g. 'Danmark/dk' versus 'Danish/da'.<br>
#<br>
# Note 3: In the case of 'ltz' we violate the RFC by using a three char<br>
# specifier. There is 'work in progress' to fix this and get<br>
# the reference data for rfc1766 cleaned up.<br>
#<br>
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)<br>
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German
(de)<br>
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)<br>
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)<br>
# Norwegian (no) - Polish (pl) - Portugese (pt)<br>
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)<br>
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese
(zh-TW)<br>
#<br>
AddLanguage ca .ca<br>
AddLanguage cs .cz .cs<br>
AddLanguage da .dk<br>
AddLanguage de .de<br>
AddLanguage el .el<br>
AddLanguage en .en<br>
AddLanguage eo .eo<br>
AddLanguage es .es<br>
AddLanguage et .et<br>
AddLanguage fr .fr<br>
AddLanguage he .he<br>
AddLanguage hr .hr<br>
AddLanguage it .it<br>
AddLanguage ja .ja<br>
AddLanguage ko .ko<br>
AddLanguage ltz .ltz<br>
AddLanguage nl .nl<br>
AddLanguage nn .nn<br>
AddLanguage no .no<br>
AddLanguage pl .po<br>
AddLanguage pt .pt<br>
AddLanguage pt-BR .pt-br<br>
AddLanguage ru .ru<br>
AddLanguage sv .sv<br>
AddLanguage zh-CN .zh-cn<br>
AddLanguage zh-TW .zh-tw<br>
<br>
#<br>
# LanguagePriority allows you to give precedence to some languages<br>
# in case of a tie during content negotiation.<br>
#<br>
# Just list the languages in decreasing order of preference. We have<br>
# more or less alphabetized them here. You probably want to change this.<br>
#<br>
LanguagePriority 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<br>
<br>
#<br>
# ForceLanguagePriority allows you to serve a result page rather than<br>
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE
(Fallback)<br>
# [in case no accepted languages matched the available variants]<br>
#<br>
ForceLanguagePriority Prefer Fallback<br>
<br>
#<br>
# Specify a default charset for all content served; this enables<br>
# interpretation of all content as UTF-8 by default.&nbsp; To use the <br>
# default browser choice (ISO-8859-1), or to allow the META tags<br>
# in HTML content to override this choice, comment out this<br>
# directive:<br>
#<br>
AddDefaultCharset UTF-8<br>
<br>
#<br>
# AddType allows you to add to or override the MIME configuration<br>
# file mime.types for specific file types.<br>
#<br>
#AddType application/x-tar .tgz<br>
AddType application/x-httpd-php .php<br>
<br>
<br>
#<br>
# AddEncoding allows you to have certain browsers uncompress<br>
# information on the fly. Note: Not all browsers support this.<br>
# Despite the name similarity, the following Add* directives have
nothing<br>
# to do with the FancyIndexing customization directives above.<br>
#<br>
#AddEncoding x-compress .Z<br>
#AddEncoding x-gzip .gz .tgz<br>
<br>
# If the AddEncoding directives above are commented-out, then you<br>
# probably should define those extensions to indicate media types:<br>
#<br>
AddType application/x-compress .Z<br>
AddType application/x-gzip .gz .tgz<br>
<br>
#<br>
# AddHandler allows you to map certain file extensions to "handlers":<br>
# actions unrelated to filetype. These can be either built into the
server<br>
# or added with the Action directive (see below)<br>
#<br>
# To use CGI scripts outside of ScriptAliased directories:<br>
# (You will also need to add "ExecCGI" to the "Options" directive.)<br>
#<br>
#AddHandler cgi-script .cgi<br>
<br>
#<br>
# For files that include their own HTTP headers:<br>
#<br>
#AddHandler send-as-is asis<br>
<br>
#<br>
# For type maps (negotiated resources):<br>
# (This is enabled by default to allow the Apache "It Worked" page<br>
#&nbsp; to be distributed in multiple languages.)<br>
#<br>
AddHandler type-map var<br>
<br>
#<br>
# Filters allow you to process content before it is sent to the client.<br>
#<br>
# To parse .shtml files for server-side includes (SSI):<br>
# (You will also need to add "Includes" to the "Options" directive.)<br>
#<br>
AddType text/html .shtml<br>
AddOutputFilter INCLUDES .shtml<br>
<br>
#<br>
# Action lets you define media types that will execute a script whenever<br>
# a matching file is called. This eliminates the need for repeated URL<br>
# pathnames for oft-used CGI file processors.<br>
# Format: Action media/type /cgi-script/location<br>
# Format: Action handler-name /cgi-script/location<br>
#<br>
<br>
#<br>
# Customizable error responses come in three flavors:<br>
# 1) plain text 2) local redirects 3) external redirects<br>
#<br>
# Some examples:<br>
#ErrorDocument 500 "The server made a boo boo."<br>
#ErrorDocument 404 /missing.html<br>
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"<br>
#ErrorDocument 402 <a class="moz-txt-link-freetext" href="http://www.example.com/subscription_info.html">http://www.example.com/subscription_info.html</a><br>
#<br>
<br>
#<br>
# Putting this all together, we can internationalize error responses.<br>
#<br>
# We use Alias to redirect any /error/HTTP_&lt;error&gt;.html.var
response to<br>
# our collection of by-error message multi-language collections.&nbsp; We
use <br>
# includes to substitute the appropriate text.<br>
#<br>
# You can modify the messages' appearance without changing any of the<br>
# default HTTP_&lt;error&gt;.html.var files by adding the line:<br>
#<br>
#&nbsp;&nbsp; Alias /error/include/ "/your/include/path/"<br>
#<br>
# which allows you to create your own set of files by starting with the<br>
# /var/www/error/include/ files and<br>
# copying them to /your/include/path/, even on a per-VirtualHost basis.<br>
#<br>
<br>
#Alias /error/ "/var/www/error/"<br>
<br>
#&lt;IfModule mod_negotiation.c&gt;<br>
#&lt;IfModule mod_include.c&gt;<br>
#&nbsp;&nbsp;&nbsp; &lt;Directory "/var/www/error"&gt;<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride None<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options IncludesNoExec<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddOutputFilter Includes html<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddHandler type-map var<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LanguagePriority en es de fr<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ForceLanguagePriority Prefer Fallback<br>
#&nbsp;&nbsp;&nbsp; &lt;/Directory&gt;<br>
<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 410 /error/HTTP_GONE.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var<br>
#&nbsp;&nbsp;&nbsp; ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var<br>
<br>
#&lt;/IfModule&gt;<br>
#&lt;/IfModule&gt;<br>
<br>
#<br>
# The following directives modify normal HTTP response behavior to<br>
# handle known problems with browser implementations.<br>
#<br>
BrowserMatch "Mozilla/2" nokeepalive<br>
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0<br>
BrowserMatch "RealPlayer 4\.0" force-response-1.0<br>
BrowserMatch "Java/1\.0" force-response-1.0<br>
BrowserMatch "JDK/1\.0" force-response-1.0<br>
<br>
#<br>
# The following directive disables redirects on non-GET requests for<br>
# a directory that does not include the trailing slash.&nbsp; This fixes a <br>
# problem with Microsoft WebFolders which does not appropriately handle
<br>
# redirects for folders with DAV methods.<br>
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.<br>
#<br>
BrowserMatch "Microsoft Data Access Internet Publishing Provider"
redirect-carefully<br>
BrowserMatch "MS FrontPage" redirect-carefully<br>
BrowserMatch "^WebDrive" redirect-carefully<br>
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully<br>
BrowserMatch "^gnome-vfs/1.0" redirect-carefully<br>
BrowserMatch "^XML Spy" redirect-carefully<br>
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully<br>
<br>
#<br>
# Allow server status reports generated by mod_status,<br>
# with the URL of <a class="moz-txt-link-freetext" href="http://servername/server-status">http://servername/server-status</a><br>
# Change the ".example.com" to match your domain to enable.<br>
#<br>
&lt;Location /server-status&gt;<br>
&nbsp;&nbsp;&nbsp; SetHandler server-status<br>
&nbsp;&nbsp;&nbsp; Order deny,allow<br>
&nbsp;&nbsp;&nbsp; Deny from all<br>
&nbsp;&nbsp;&nbsp; Allow from localhost<br>
&nbsp;&nbsp;&nbsp; Allow from 127.0.0.1<br>
&lt;/Location&gt;<br>
<br>
#<br>
# Allow remote server configuration reports, with the URL of<br>
#&nbsp; <a class="moz-txt-link-freetext" href="http://servername/server-info">http://servername/server-info</a> (requires that mod_info.c be loaded).<br>
# Change the ".example.com" to match your domain to enable.<br>
#<br>
#&lt;Location /server-info&gt;<br>
#&nbsp;&nbsp;&nbsp; SetHandler server-info<br>
#&nbsp;&nbsp;&nbsp; Order deny,allow<br>
#&nbsp;&nbsp;&nbsp; Deny from all<br>
#&nbsp;&nbsp;&nbsp; Allow from .example.com<br>
#&lt;/Location&gt;<br>
<br>
#<br>
# Proxy Server directives. Uncomment the following lines to<br>
# enable the proxy server:<br>
#<br>
#&lt;IfModule mod_proxy.c&gt;<br>
#ProxyRequests On<br>
#<br>
#&lt;Proxy *&gt;<br>
#&nbsp;&nbsp;&nbsp; Order deny,allow<br>
#&nbsp;&nbsp;&nbsp; Deny from all<br>
#&nbsp;&nbsp;&nbsp; Allow from .example.com<br>
#&lt;/Proxy&gt;<br>
<br>
#<br>
# Enable/disable the handling of HTTP/1.1 "Via:" headers.<br>
# ("Full" adds the server version; "Block" removes all outgoing Via:
headers)<br>
# Set to one of: Off | On | Full | Block<br>
#<br>
#ProxyVia On<br>
<br>
#<br>
# To enable a cache of proxied content, uncomment the following lines.<br>
# See <a class="moz-txt-link-freetext" href="http://httpd.apache.org/docs/2.2/mod/mod_cache.html">http://httpd.apache.org/docs/2.2/mod/mod_cache.html</a> for more
details.<br>
#<br>
#&lt;IfModule mod_disk_cache.c&gt;<br>
#&nbsp;&nbsp; CacheEnable disk /<br>
#&nbsp;&nbsp; CacheRoot "/var/cache/mod_proxy"<br>
#&lt;/IfModule&gt;<br>
#<br>
<br>
#&lt;/IfModule&gt;<br>
# End of proxy directives.<br>
# Start Compression settings<br>
&lt;IfModule mod_deflate.c&gt;<br>
AddOutputFilterByType DEFLATE text/html text/css
application/x-javascript text/plain text/xml text/javascript<br>
BrowserMatch ^Mozilla/4 gzip-only-text/html<br>
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br>
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br>
DeflateFilterNote Input input_info<br>
DeflateFilterNote Output output_info<br>
DeflateFilterNote Ratio ratio_info<br>
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)'
deflate<br>
CustomLog /var/log/httpd/deflate_log deflate<br>
&lt;/IfModule&gt;<br>
<br>
# Start caching directives<br>
&lt;IfModule mod_expires.c&gt;<br>
ExpiresActive On<br>
ExpiresByType image/gif "access plus 3 days"<br>
ExpiresByType image/jpeg "access plus 3 days"<br>
ExpiresByType image/png "access plus 3 days"<br>
ExpiresByType application/x-javascript "access plus 3 days"<br>
ExpiresByType text/css "access plus 3 days"<br>
&lt;/IfModule&gt;<br>
</body>
</html>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message