Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
admin
/
configs
/
class
/
16
/
apache
/
//srv/admin/configs/class/16/apache/base.conf
# (C) 2011 Gandi # Redistribution or use outside of Gandi's platform is prohibited. # # 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 http://httpd.apache.org/docs/2.2/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "foo.log" # with ServerRoot set to "/etc/apache2" will be interpreted by the # server as "/etc/apache2/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # ServerName 127.0.0.1 # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # #ServerRoot "/etc/apache2" # # PidFile: The file in which the server should record its process # identification number when it starts. # This needs to be set in /etc/apache2/envvars # PidFile ${LOCAL_DIR}/apache/apache.pid # Timeout: The number of seconds before receives and sends time out. # (60 with apache 2.4, 300 with lower version) Timeout 300 # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. KeepAlive On # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. MaxKeepAliveRequests 1000 # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. KeepAliveTimeout 5 # Specifies ports listing #NameVirtualHost *:5080 Listen 5080 Listen 5081 # MMAP over NFS is implemented on Linux by generic_file_mmap , so it's less # efficient than regular read/write. # Also, MMAP over NFS4 should not trigger the SIGBUSes that NFS3 # would, thanks to file delegation. But as of Jun 2011 I am not sure # this is the case (see page_not_uptodate EnableMMAP Off EnableSendfile On ## ## Server-Pool Size Regulation (MPM specific) ## # event MPM # StartServers: initial number of server processes to start # MaxRequestWorkers: Maximum number of connections that will be processed simultaneously # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxConnectionsPerChild: Limit on the number of connections that an individual child server will handle during its life <IfModule mpm_event_module> StartServers 1 ServerLimit 4 MinSpareThreads 4 # Max Servers = MaxRequestWorkers / ThreadsPerChild MaxRequestWorkers 128 ThreadsPerChild 64 # Should be equal to ThreadsPerChild ThreadLimit 64 # Max Conn = MaxRequestWorkers * (AsyncRequestWorkerFactor+1) AsyncRequestWorkerFactor 4 </IfModule> # These need to be set in /etc/apache2/envvars User ${APP_USER} Group ${APP_USER} # # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy all </Files> # DefaultType is the default MIME type the server will use for a document # if it cannot otherwise determine one, such as from filename extensions. # If your server contains mostly text or HTML documents, "text/plain" is # a good value. If most of your content is binary, such as applications # or images, you may want to use "application/octet-stream" instead to # keep browsers from trying to display binary files as though they are # text. #DefaultType text/plain AddType application/x-httpd-php .php # 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 is off because it'd be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. HostnameLookups Off ## ## Logging ## # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # ErrorLog "${CUSTOMER_DIR}/var/log/apache/error.log" # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn <IfModule log_config_module> # The following directives define some format nicknames for use with # a CustomLog directive (see below). # If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i # LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined # LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined # LogFormat "%h %l %u %t \"%r\" %>s %O" common # LogFormat "%{Referer}i -> %U" referer # LogFormat "%{User-agent}i" agent LogFormat "%V %a %l %u %t (%T s) \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_paas SetEnvIf Request_Method CHECK probe CustomLog "${CUSTOMER_DIR}/var/log/apache/access.log" vhost_paas env=!probe # Necessary to prevent apache from saturating the NFS server # BufferedLogs On </IfModule> # If SKIP_XMLRPC_REWRITE is not set we redirect accesses to xmlrpc.php RewriteCond %{ENV:SKIP_XMLRPC_REWRITE} !1 RewriteRule ^xmlrpc\.php$ http://0.0.0.0/ [R=301,L]