File: //etc/apache2/apache2.conf
ServerTokens Minor
PidFile ${APACHE_PID_FILE}
Timeout 120
KeepAlive Off
Listen 80
LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so
LoadModule mosso_module /usr/lib/apache2/modules/mod_mosso.so
LoadModule auth_basic_module /usr/lib/apache2/modules/mod_auth_basic.so
LoadModule authn_file_module /usr/lib/apache2/modules/mod_authn_file.so
LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so
LoadModule authz_user_module /usr/lib/apache2/modules/mod_authz_user.so
LoadModule authz_groupfile_module /usr/lib/apache2/modules/mod_authz_groupfile.so
LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so
LoadModule authn_core_module /usr/lib/apache2/modules/mod_authn_core.so
LoadModule access_compat_module /usr/lib/apache2/modules/mod_access_compat.so
LoadModule include_module /usr/lib/apache2/modules/mod_include.so
LoadModule env_module /usr/lib/apache2/modules/mod_env.so
LoadModule expires_module /usr/lib/apache2/modules/mod_expires.so
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
LoadModule setenvif_module /usr/lib/apache2/modules/mod_setenvif.so
LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
LoadModule status_module /usr/lib/apache2/modules/mod_status.so
LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so
LoadModule negotiation_module /usr/lib/apache2/modules/mod_negotiation.so
LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
LoadModule actions_module /usr/lib/apache2/modules/mod_actions.so
LoadModule unique_id_module /usr/lib/apache2/modules/mod_unique_id.so
LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
LoadModule remoteip_module /usr/lib/apache2/modules/mod_remoteip.so
LoadModule slotlimit_module /usr/lib/apache2/modules/mod_slotlimit.so
LoadModule filter_module /usr/lib/apache2/modules/mod_filter.so
IncludeOptional /etc/apache2/mods-enabled/php5.loa[d]
IncludeOptional /etc/apache2/mods-enabled/php7.0.loa[d]
IncludeOptional /etc/apache2/mods-enabled/php7.1.loa[d]
IncludeOptional /etc/apache2/mods-enabled/php7.2.loa[d]
IncludeOptional /etc/apache2/mods-enabled/php7.3.loa[d]
IncludeOptional /etc/apache2/mods-enabled/php7.4.loa[d]
IncludeOptional /etc/apache2/mods-enabled/php8.0.loa[d]
IncludeOptional /etc/apache2/mods-enabled/php8.4.loa[d]
<IfModule prefork.c>
StartServers 20
MinSpareServers 20
MaxSpareServers 45
ServerLimit 193
MaxClients 193
MaxRequestsPerChild 750
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule mod_mosso.c>
<IfModule sapi_apache2.c>
<php_value>
session.save_path /tmp
</php_value>
</IfModule>
</IfModule>
<FilesMatch \.ph(p[3-5]?|tml)$>
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch \.phps$>
SetHandler application/xhttpd-php-source
</FilesMatch>
<IfModule mod_slotlimit.c>
ForceVhostName On
MaxConnectionsPerSite 10
ClientIpLimit 10
AvailableSlotsPercent 25
</IfModule>
<IfModule mod_remoteip.c>
RemoteIPHeader X-Cluster-Client-IP
RemoteIPInternalProxy 10.40.206.151
RemoteIPInternalProxy 10.40.206.152
RemoteIPInternalProxy 10.40.206.153
RemoteIPInternalProxy 10.40.206.154
RemoteIPInternalProxy 10.40.206.155
RemoteIPInternalProxy 10.40.206.156
RemoteIPInternalProxy 10.40.206.157
RemoteIPInternalProxy 10.40.206.158
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACK
RewriteRule .* - [F,L]
TraceEnable Off
ExtendedStatus On
User www-data
Group www-data
ServerAdmin root@localhost
ServerName localhost
DocumentRoot /var/www/html
FileETag None
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options FollowSymLinks Indexes MultiViews Includes
AllowOverride None
Require all granted
</Directory>
<IfModule mod_userdir.c>
UserDir disable
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.shtml
</IfModule>
AccessFileName .htaccess
<Files ~ "(?i)^\.ht|^web\.config|^global\.as|.*\.ascx$">
Require all denied
</Files>
TypesConfig /etc/mime.types
<IfModule mod_mime_magic.c>
MIMEMagicFile magic
</IfModule>
HostnameLookups Off
EnableMMAP Off
EnableSendfile Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
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
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
LogFormat "%P %V %{X-Cluster-Client-ip}i %D %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ZXTM
LogFormat "[%P, \"%V\", \"%h\", \"%{REMOTE_ADDR}e\", %D, \"%l\", \"%u\", \"%t\", \"%r\", %>s, %b, \"%{Referer}i\", \"%{User-Agent}i\"]" json
CustomLog /var/log/apache2/access.log json
ServerSignature On
<IfModule mod_alias.c>
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
</IfModule>
<IfModule mod_dav_fs.c>
DAVLockDB /var/lib/dav/lockdb
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing NameWidth=*
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 /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
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
<IfModule mod_negotiation.c>
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
</IfModule>
ForceLanguagePriority Prefer Fallback
AddType application/x-tar .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule mod_include.c>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
AddDefaultCharset UTF-8
<IfModule mod_setenvif.c>
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
</IfModule>
Alias /error/ "/var/www/error/"
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
<Directory "/var/www/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Require all granted
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
</IfModule>
</IfModule>
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
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
<Location /server-status>
SetHandler server-status
Require local
Require ip 10.42.20.12
Require ip 10.42.20.13
</Location>
SetEnvIfNoCase CLUSTER_HTTPS on HTTPS=on
AcceptFilter http none
<Directory /mnt/stor0-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor1-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor2-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor3-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor4-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor5-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor6-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor7-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor8-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor9-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor10-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor11-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor12-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor13-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor14-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor15-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor16-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor17-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor18-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor19-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
<Directory /mnt/stor20-wc2-dfw1/*>
Options +Includes +FollowSymLinks
AllowOverride All
XBitHack On
</Directory>
UseCanonicalName Off
vhost_socket /var/lib/redis/redis.sock
content_subdir /web/content
<VirtualHost *:80>
</VirtualHost>
<VirtualHost *:80>
ServerName phpmyadmin.websitesettings.com
ServerAlias mysql.sat1-1.websitesettings.com
ServerAlias mysql.dfw1-1.websitesettings.com
ServerAlias mysql.dfw1-2.websitesettings.com
ServerAlias mysql.ord1-1.websitesettings.com
ServerAlias mysql.dfw3-1.websitesettings.com
ServerAlias mysql.dfw3-2.websitesettings.com
ServerAlias mysql.phx1-1.websitesettings.com
ServerAlias mysql.phx1-2.websitesettings.com
ServerAlias mysql.lan3-1.websitesettings.com
DocumentRoot /usr/share/phpmyadmin
php_value post_max_size 50M
php_value upload_max_filesize 50M
<Directory /usr/share/phpmyadmin/setup>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/lib>
Require all denied
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName ftp.ftptoyoursite.com
ServerAlias ftp.ord1-1.websitesettings.com
ServerAlias ftp2.ftptoyoursite.com
ServerAlias ftp3.ftptoyoursite.com
ServerAlias ftp.dev.ftptoyoursite.com
ServerAlias ftp.staging.ftptoyoursite.com
DocumentRoot /usr/local/monstaftp
php_value post_max_size 1024M
php_value upload_max_filesize 1024M
<Directory /usr/local/monstaftp/license/>
Require all denied
</Directory>
</VirtualHost>