Edit File: ___var___cpanel___templates___apache2___main.default
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the # # configuration file. To have modifications retained, all modifications must be checked into the # # configuration system by running: # # /usr/local/cpanel/bin/apache_conf_distiller --update # # To see if your changes will be conserved, regenerate the Apache configuration file by running: # # /usr/local/cpanel/bin/build_apache_conf # # and check the configuration file for your alterations. If your changes have been ignored, then they will # # need to be added directly to their respective template files. # # # # It is also possible to add custom directives to the various "Include" files loaded by this httpd.conf # # For detailed instructions on using Include files and the apache_conf_distiller with the new configuration # # system refer to the documentation at: http://www.cpanel.net/support/docs/ea/ea3/customdirectives.html # # # # This configuration file was built from the following templates: # # /var/cpanel/templates/apache2/main.default # # /var/cpanel/templates/apache2/main.local # # /var/cpanel/templates/apache2/vhost.default # # /var/cpanel/templates/apache2/vhost.local # # /var/cpanel/templates/apache2/ssl_vhost.default # # /var/cpanel/templates/apache2/ssl_vhost.local # # # # Templates with the '.local' extension will be preferred over templates with the '.default' extension. # # The only template updated by the apache_conf_distiller is main.default. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # [% IF file_test('f', '/usr/local/apache/conf/includes/pre_main_global.conf') -%] Include "/usr/local/apache/conf/includes/pre_main_global.conf" [% END -%] [% IF file_test('f', '/usr/local/apache/conf/includes/pre_main_2.conf') -%] Include "/usr/local/apache/conf/includes/pre_main_2.conf" [% END -%] [% FOREACH dir IN main.loadmodule.items -%] LoadModule [% dir.module %] [% dir.filename %] [% END -%] [% FOREACH dir IN main.include.items -%] Include [% dir.include %] [% END -%] ErrorLog [% main.errorlog.item.errorlog %] DefaultType [% main.defaulttype.item.defaulttype %] [% FOREACH dir IN main.scriptaliasmatch.items -%] ScriptAliasMatch [% dir.regex %] [% dir.path %] [% END -%] RewriteEngine [% main.rewriteengine.item.rewriteengine %] [% FOREACH dir IN main.addtype.items -%] AddType [% dir.mime %] [% dir.extension %] [% END -%] [% FOREACH dir IN main.alias.items -%] Alias [% dir.url %] [% dir.path %] [% END -%] [% FOREACH dir IN main.scriptalias.items -%] ScriptAlias [% dir.url %] [% dir.path %] [% END -%] <Directory "[% main.maindirectory.item.directory %]"> Options [% main.directory.options.item.options %] AllowOverride [% main.directory.allowoverride.item.allowoverride %] </Directory> <Directory "[% main.maindirectoryusrlocalapachehtdocs.item.directory %]"> Options [% main.directoryusrlocalapachehtdocs.options.item.options %] AllowOverride [% main.directoryusrlocalapachehtdocs.allowoverride.item.allowoverride %] Order [% main.directoryusrlocalapachehtdocs.order.item.order %] [% FOREACH dir IN main.directoryusrlocalapachehtdocs.allow.items -%] Allow from [% dir.allow %] [% END -%] </Directory> <Files [% main.mainfileserrorlog.item.files %]> Order [% main.fileserrorlog.order.item.order %] [% FOREACH dir IN main.fileserrorlog.deny.items -%] Deny from [% dir.deny %] [% END -%] Satisfy [% main.fileserrorlog.satisfy.item.satisfy %] </Files> <FilesMatch [% main.mainfilesmatchht.item.filesmatch %]> Order [% main.filesmatchht.order.item.order %] [% FOREACH dir IN main.filesmatchht.deny.items -%] Deny from [% dir.deny %] [% END -%] Satisfy [% main.filesmatchht.satisfy.item.satisfy %] </FilesMatch> <IfModule [% main.mainifmodulelogconfigmodule.item.ifmodule %]> [% FOREACH dir IN main.ifmodulelogconfigmodule.logformat.items -%] LogFormat [% dir.logformat %] [% END -%] [% FOREACH dir IN main.ifmodulelogconfigmodule.customlog.items -%] CustomLog [% dir.target %] [% dir.format %] [% END -%] <IfModule [% main.mainifmodulelogconfigmoduleifmodulelogiomodule.item.ifmodule %]> [% FOREACH dir IN main.ifmodulelogconfigmodule.ifmodulelogiomodule.logformat.items -%] LogFormat [% dir.logformat %] [% END -%] </IfModule> </IfModule> <IfModule [% main.mainifmodulealiasmodule.item.ifmodule %]> [% FOREACH dir IN main.ifmodulealiasmodule.scriptalias.items -%] ScriptAlias [% dir.url %] [% dir.path %] [% END -%] </IfModule> <Directory "[% main.maindirectoryusrlocalapachecgibin.item.directory %]"> AllowOverride [% main.directoryusrlocalapachecgibin.allowoverride.item.allowoverride %] Options [% main.directoryusrlocalapachecgibin.options.item.options %] Order [% main.directoryusrlocalapachecgibin.order.item.order %] [% FOREACH dir IN main.directoryusrlocalapachecgibin.allow.items -%] Allow from [% dir.allow %] [% END -%] </Directory> <IfModule [% main.mainifmodulemodlogconfigc.item.ifmodule %]> [% FOREACH dir IN main.ifmodulemodlogconfigc.logformat.items -%] LogFormat [% dir.logformat %] [% END -%] [% FOREACH dir IN main.ifmodulemodlogconfigc.customlog.items -%] CustomLog [% dir.target %] [% dir.format %] [% END -%] </IfModule> <IfModule [% main.mainifmodulemimemodule.item.ifmodule %]> TypesConfig [% main.ifmodulemimemodule.typesconfig.item.typesconfig %] [% FOREACH dir IN main.ifmodulemimemodule.addtype.items -%] AddType [% dir.mime %] [% dir.extension %] [% END -%] </IfModule> # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the # # configuration file. To have modifications retained, all modifications must be checked into the # # configuration system by running: # # /usr/local/cpanel/bin/apache_conf_distiller --update # # To see if your changes will be conserved, regenerate the Apache configuration file by running: # # /usr/local/cpanel/bin/build_apache_conf # # and check the configuration file for your alterations. If your changes have been ignored, then they will # # need to be added directly to their respective template files. # # # # It is also possible to add custom directives to the various "Include" files loaded by this httpd.conf # # For detailed instructions on using Include files and the apache_conf_distiller with the new configuration # # system refer to the documentation at: http://www.cpanel.net/support/docs/ea/ea3/customdirectives.html # # # # This configuration file was built from the following templates: # # /var/cpanel/templates/apache2/main.default # # /var/cpanel/templates/apache2/main.local # # /var/cpanel/templates/apache2/vhost.default # # /var/cpanel/templates/apache2/vhost.local # # /var/cpanel/templates/apache2/ssl_vhost.default # # /var/cpanel/templates/apache2/ssl_vhost.local # # # # Templates with the '.local' extension will be preferred over templates with the '.default' extension. # # The only template updated by the apache_conf_distiller is main.default. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # PidFile [% main.pidfile.item.pidfile %] LockFile [% main.lockfile.item.lockfile %] [% IF configured.ip_listen -%] [%- FOREACH ip IN configured.ip_listen -%] Listen [% ip %]:[% configured.main_port %] [% END -%] [% ELSE -%] # Defined in /var/cpanel/cpanel.config: apache_port Listen [% main.listen.item.listen %] [% END -%] User [% main.user.item.user %] Group [% main.group.item.group %] ExtendedStatus [% main.extendedstatus.item.extendedstatus %] ServerAdmin [% main.serveradmin.item.serveradmin %] ServerName [% wildcard_safe(main.servername.item.servername) %] LogLevel [% main.loglevel.item.loglevel %] # These can be set in WHM under 'Apache Global Configuration' [% IF main.timeout.item.timeout.length %]Timeout [% main.timeout.item.timeout %][% END %] [% IF main.traceenable.item.traceenable.length %]TraceEnable [% main.traceenable.item.traceenable %][% END %] [% IF main.serversignature.item.serversignature.length %]ServerSignature [% main.serversignature.item.serversignature %][% END %] [% IF main.servertokens.item.servertokens.length %]ServerTokens [% main.servertokens.item.servertokens %][% END %] [% IF main.fileetag.item.fileetag.length %]FileETag [% main.fileetag.item.fileetag %][% END %] [% IF main.startservers.item.startservers.length %]StartServers [% main.startservers.item.startservers %][% END %] <IfModule prefork.c> [% IF main.minspareservers.item.minspareservers.length %]MinSpareServers [% main.minspareservers.item.minspareservers %][% END %] [% IF main.maxspareservers.item.maxspareservers.length %]MaxSpareServers [% main.maxspareservers.item.maxspareservers %][% END %] </IfModule> <IfModule itk.c> [% IF main.minspareservers.item.minspareservers.length %]MinSpareServers [% main.minspareservers.item.minspareservers %][% END %] [% IF main.maxspareservers.item.maxspareservers.length %]MaxSpareServers [% main.maxspareservers.item.maxspareservers %][% END %] </IfModule> [% IF main.serverlimit.item.serverlimit.length %]ServerLimit [% main.serverlimit.item.serverlimit %][% END %] [% IF main.maxclients.item.maxclients.length %]MaxClients [% main.maxclients.item.maxclients %][% END %] [% IF main.maxrequestsperchild.item.maxrequestsperchild.length %]MaxRequestsPerChild [% main.maxrequestsperchild.item.maxrequestsperchild %][% END %] [% IF main.keepalive.item.keepalive.length %]KeepAlive [% main.keepalive.item.keepalive %][% END %] [% IF main.keepalivetimeout.item.keepalivetimeout.length %]KeepAliveTimeout [% main.keepalivetimeout.item.keepalivetimeout %][% END %] [% IF main.maxkeepaliverequests.item.exists('maxkeepaliverequests') %]MaxKeepAliveRequests [% main.maxkeepaliverequests.item.maxkeepaliverequests || 0 %][% END %] [% IF file_test('f', '/usr/local/cpanel/bin/leechprotect') -%] RewriteEngine on RewriteMap LeechProtect prg:/usr/local/cpanel/bin/leechprotect RewriteLock /usr/local/apache/logs/rewrite_lock [% END -%] [% IF supported.mod_userdir -%] # Set UserDir directory for all virtual hosts, except.. UserDir public_html # when the following two modules are loaded <IfModule mod_ruid2.c> UserDir disabled </IfModule> <IfModule itk.c> UserDir disabled </IfModule> [% END -%] [% IF supported.mod_dir -%] # DirectoryIndex is set via the WHM -> Service Configuration -> Apache Setup -> DirectoryIndex Priority DirectoryIndex [% main.directoryindex.item.directoryindex %] [% END -%] [% IF supported.mod_ssl -%] # SSLCipherSuite can be set in WHM under 'Apache Global Configuration' [% IF main.sslciphersuite.item.sslciphersuite.length %]SSLCipherSuite [% main.sslciphersuite.item.sslciphersuite %][% END %] SSLPassPhraseDialog builtin SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache SSLSessionCacheTimeout 300 SSLMutex file:/usr/local/apache/logs/ssl_mutex SSLRandomSeed startup builtin SSLRandomSeed connect builtin [% IF configured.ip_listen_ssl -%] [%- FOREACH ip IN configured.ip_listen_ssl -%] Listen [% ip %]:[% configured.main_port_ssl %] [% END -%] [% ELSE -%] # Defined in /var/cpanel/cpanel.config: apache_ssl_port Listen [% main.ifdefinessl.listen.item.listen %] [% END -%] AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl [% END -%] [% IF supported.mod_mime -%] AddHandler cgi-script .cgi .pl .plx .ppl .perl AddHandler server-parsed .shtml AddType text/html .shtml AddType application/x-tar .tgz AddType text/vnd.wap.wml .wml AddType image/vnd.wap.wbmp .wbmp AddType text/vnd.wap.wmlscript .wmls AddType application/vnd.wap.wmlc .wmlc AddType application/vnd.wap.wmlscriptc .wmlsc [% END -%] <Location /whm-server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 ::1 </Location> [% IF serve_server_status %] <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from [% allow_server_info_status_from %] </Location> [% END -%] [% IF serve_server_info %] <Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from [% allow_server_info_status_from %] </Location> [% END -%] [% IF supported.suexec == 1 %] # SUEXEC is supported [% END -%] [% IF file_test('f', '/usr/local/apache/conf/includes/account_suspensions.conf') -%] Include "/usr/local/apache/conf/includes/account_suspensions.conf" [% END -%] [% IF file_test('f', '/usr/local/apache/conf/includes/pre_virtualhost_global.conf') -%] Include "/usr/local/apache/conf/includes/pre_virtualhost_global.conf" [% END -%] [% IF file_test('f', '/usr/local/apache/conf/includes/pre_virtualhost_2.conf') -%] Include "/usr/local/apache/conf/includes/pre_virtualhost_2.conf" [% END -%] # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. [%- FOREACH nvh IN namevirtualhosts -%] NameVirtualHost [% nvh %] [% END -%] NameVirtualHost * [%- FOREACH vh IN sharedips -%] # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. <VirtualHost [% vh %]> ServerName [% parsed_ip(vh) %] DocumentRoot [% serverroot %]/htdocs ServerAdmin [% serveradmin %] [%- IF supported.mod_suphp %] <IfModule mod_suphp.c> suPHP_UserGroup nobody nobody </IfModule> [%- END %] [%- IF supported.mod_userdir && userdirprotect_enabled && defaultvhost.userdirprotect != '-1' %] UserDir disabled [%- IF defaultvhost.userdirprotect != '' %] UserDir enabled [% defaultvhost.userdirprotect %] [%- END -%] [%- END %] </VirtualHost> [% END -%] # Default vhost for unbound IPs <VirtualHost *> ServerName [% wildcard_safe(servername) %] DocumentRoot [% serverroot %]/htdocs ServerAdmin [% serveradmin %] [%- IF supported.mod_suphp %] <IfModule mod_suphp.c> suPHP_UserGroup nobody nobody </IfModule> [%- END %] [%- IF supported.mod_userdir && userdirprotect_enabled && defaultvhost.userdirprotect != '-1' %] UserDir disabled [%- IF defaultvhost.userdirprotect != '' %] UserDir enabled [% defaultvhost.userdirprotect %] [%- END -%] [%- END %] </VirtualHost> [%- FOREACH vhost IN vhosts -%] # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. [%- IF vhost.custom_vhost_template_ap2 != '' -%] [%- INCLUDE $vhost.custom_vhost_template_ap2 -%] [%- ELSE -%] [%- INCLUDE $includes.vhost -%] [%- END -%] [%- END -%] # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. # SSL [%- FOREACH vhost IN ssl_vhosts -%] # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. [%- IF vhost.custom_vhost_template_ap2 != '' -%] [%- INCLUDE $vhost.custom_vhost_template_ap2 -%] [%- ELSE -%] [%- INCLUDE $includes.ssl_vhost -%] [%- END -%] [%- END -%] [% ips_in_use.push("127.0.0.1") %] [% SET copy_of_ips_in_use = ips_in_use.slice(0) %] [% WHILE (ip_block = copy_of_ips_in_use.splice(0, 50)) AND ip_block.size %] [% IF proxysubdomains && supported.mod_proxy && supported.mod_rewrite %] [% IF autodiscover_proxy_subdomains %] # CPANEL/WHM/WEBMAIL/WEBDISK/AUTOCONFIG PROXY SUBDOMAINS [% ELSE %] # CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS [% END %] <VirtualHost[% FOREACH server_ip IN ip_block %] [% "${server_ip}:${configured.main_port}" %][% END %]> ServerName [% wildcard_safe(servername) %] [% IF autodiscover_proxy_subdomains %] ServerAlias cpanel.* whm.* webmail.* webdisk.* autodiscover.* autoconfig.* [% ELSE %] ServerAlias cpanel.* whm.* webmail.* webdisk.* [% END %] DocumentRoot [% serverroot %]/htdocs ServerAdmin [% serveradmin %] [%- IF supported.mod_suphp %] <IfModule mod_suphp.c> suPHP_UserGroup nobody nobody </IfModule> [%- END %] [%- IF supported.mod_security2 %] <IfModule mod_security2.c> SecRuleEngine Off </IfModule> [%- END %] [%- IF supported.mod_userdir && userdirprotect_enabled && defaultvhost.userdirprotect != '-1' %] UserDir disabled [%- IF defaultvhost.userdirprotect != '' %] UserDir enabled [% defaultvhost.userdirprotect %] [%- END -%] [%- END %] RewriteEngine On RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^cpanel\. RewriteRule ^/(.*) http://127.0.0.1:2082/$1 [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^webmail\. RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^whm\. RewriteRule ^/(.*) http://127.0.0.1:2086/$1 [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^webdisk\. RewriteRule ^/(.*) http://127.0.0.1:2077/$1 [P] [% IF autodiscover_proxy_subdomains %] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^autodiscover\. RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autodiscover.cgi [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^autoconfig\. RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autoconfig.cgi [P] [% END %] UseCanonicalName Off </VirtualHost> [% END %] [% END %] [% WHILE (ip_block = ips_in_use.splice(0, 50)) AND ip_block.size %] [% IF proxysubdomains && supported.mod_proxy && supported.mod_rewrite %] [% IF autodiscover_proxy_subdomains %] # CPANEL/WHM/WEBMAIL/WEBDISK/AUTOCONFIG PROXY SUBDOMAINS [% ELSE %] # CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS [% END %] <VirtualHost[% FOREACH server_ip IN ip_block %] [% "${server_ip}:${configured.main_port_ssl}" %][% END %]> ServerName [% wildcard_safe(servername) %] [% IF autodiscover_proxy_subdomains %] ServerAlias cpanel.* whm.* webmail.* webdisk.* autodiscover.* autoconfig.* [% ELSE %] ServerAlias cpanel.* whm.* webmail.* webdisk.* [% END %] DocumentRoot [% serverroot %]/htdocs ServerAdmin [% serveradmin %] [%- IF supported.mod_suphp %] <IfModule mod_suphp.c> suPHP_UserGroup nobody nobody </IfModule> [%- END %] [%- IF supported.mod_security2 %] <IfModule mod_security2.c> SecRuleEngine Off </IfModule> [%- END %] [%- IF supported.mod_userdir && userdirprotect_enabled && defaultvhost.userdirprotect != '-1' %] UserDir disabled [%- IF defaultvhost.userdirprotect != '' %] UserDir enabled [% defaultvhost.userdirprotect %] [%- END -%] [%- END %] RewriteEngine On <IfModule mod_ssl.c> SSLEngine on SSLProxyEngine On [% IF file_test('f', '/var/cpanel/ssl/cpanel/mycpanel.pem') -%] SSLCertificateFile /var/cpanel/ssl/cpanel/mycpanel.pem SSLCertificateKeyFile /var/cpanel/ssl/cpanel/mycpanel.pem SSLCertificateChainFile /var/cpanel/ssl/cpanel/mycpanel.pem [% ELSIF file_test('f', '/var/cpanel/ssl/cpanel/cpanel.pem') -%] SSLCertificateFile /var/cpanel/ssl/cpanel/cpanel.pem SSLCertificateKeyFile /var/cpanel/ssl/cpanel/cpanel.pem SSLCertificateChainFile /var/cpanel/ssl/cpanel/cpanel.pem [% ELSIF file_test('f', '/var/cpanel/ssl/cpanel/cpanel.crt') && file_test('f', '/var/cpanel/ssl/cpanel/cpanel.key') %] SSLCertificateFile /var/cpanel/ssl/cpanel/cpanel.crt SSLCertificateKeyFile /var/cpanel/ssl/cpanel/cpanel.key [% IF file_test('f', '/var/cpanel/ssl/cpanel/cpanel.cab') %] SSLCertificateChainFile /var/cpanel/ssl/cpanel/cpanel.cab [% END %] [% ELSE %] # No service SSL installed for cPanel [% END %] </IfModule> RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^cpanel\. RewriteCond %{HTTPS} on RewriteRule ^/(.*) https://127.0.0.1:2083/$1 [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^webmail\. RewriteCond %{HTTPS} on RewriteRule ^/(.*) https://127.0.0.1:2096/$1 [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^whm\. RewriteCond %{HTTPS} on RewriteRule ^/(.*) https://127.0.0.1:2087/$1 [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^webdisk\. RewriteCond %{HTTPS} on RewriteRule ^/(.*) https://127.0.0.1:2078/$1 [P] [% IF autodiscover_proxy_subdomains %] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^autodiscover\. RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autodiscover.cgi [P] RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$ RewriteCond %{HTTP_HOST} ^autoconfig\. RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autoconfig.cgi [P] [% END %] UseCanonicalName Off </VirtualHost> [% END %] [% END %] [% IF file_test('f', '/usr/local/apache/conf/includes/post_virtualhost_global.conf') -%] Include "/usr/local/apache/conf/includes/post_virtualhost_global.conf" [% END -%] [% IF file_test('f', '/usr/local/apache/conf/includes/post_virtualhost_2.conf') -%] Include "/usr/local/apache/conf/includes/post_virtualhost_2.conf" [% END -%] [% IF file_test('f', '/var/cpanel/domainfwdip') -%] # WHM DOMAIN FORWARDING VHOST <VirtualHost [% domainfwdip %]> ServerName [% wildcard_safe(domainfwdip) %] ServerAdmin root@localhost DocumentRoot /dev/null ScriptAliasMatch .* /usr/local/cpanel/cgi-sys/domainredirect.cgi </VirtualHost> [% END -%] # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
Back to File Manager