Advertisement
Guest User

Untitled

a guest
Nov 28th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.70 KB | None | 0 0
  1. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  2. #
  3. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4. # DO NOT EDIT. AUTOMATICALLY GENERATED. USE INCLUDE FILES IF YOU NEED TO MAKE A CHANGE
  5. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  6. #
  7. # Direct modifications to the Apache configuration file WILL be lost upon subsequent
  8. # regeneration of this configuration file, or an Apache update.
  9. #
  10. # To have your modifications retained, you should create/edit administrator-specific
  11. # include files:
  12. #
  13. # /etc/apache2/conf.d/includes/pre_main_global.conf
  14. # /etc/apache2/conf.d/includes/pre_virtualhost_global.conf
  15. # /etc/apache2/conf.d/includes/post_virtualhost_global.conf
  16. #
  17. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  18.  
  19. ##################################################
  20. ##################################################
  21. #
  22. # cPanel & WHM controlled Apache configuration
  23. #
  24. ##################################################
  25. ##################################################
  26.  
  27. Include "/etc/apache2/conf.modules.d/*.conf"
  28.  
  29. # Administrator locations for safely altering httpd.conf
  30. Include "/etc/apache2/conf.d/includes/pre_main_global.conf"
  31.  
  32. # These are hard-coded values that are required by cPanel & WHM
  33. PidFile /run/apache2/httpd.pid
  34. User nobody
  35. Group nobody
  36. ExtendedStatus On
  37. LogLevel warn
  38. # You can change this by using WHM, and navigating to the 'Basic WebHost Manager® Setup' -> 'Contact Information' interface.
  39. ServerAdmin sintec857@gmail.com
  40.  
  41. # You can change this by using WHM, and navigating to the 'Networking Setup' => 'Change Hostname' interface.
  42. ServerName leaf.treepool.org
  43.  
  44. # You can change this by using WHM, and navigating to the 'Apache Configuration' -> 'Global Configuration' interface.
  45. TraceEnable Off
  46. ServerSignature Off
  47. ServerTokens ProductOnly
  48. FileETag None
  49.  
  50. <Directory "/">
  51.  
  52. AllowOverride All
  53.  
  54. Options ExecCGI FollowSymLinks IncludesNOEXEC Indexes
  55. </Directory>
  56.  
  57. StartServers 5
  58. <IfModule prefork.c>
  59. MinSpareServers 5
  60. MaxSpareServers 10
  61. </IfModule>
  62.  
  63. ServerLimit 256
  64. MaxRequestWorkers 150
  65. MaxConnectionsPerChild 10000
  66. KeepAlive On
  67. KeepAliveTimeout 5
  68. MaxKeepAliveRequests 100
  69. Timeout 300
  70.  
  71.  
  72. <IfModule rewrite_module>
  73. # Global DCV Exclude - Rewrites
  74. RewriteEngine on
  75. RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ [OR]
  76. RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/(?:\ Ballot169)? [OR]
  77. RewriteCond %{REQUEST_URI} ^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
  78.  
  79. # Exclude proxy subdomains as we need rewrites to capture the DCV requests
  80. RewriteCond %{HTTP_HOST} !^(?:autoconfig|autodiscover|cpanel|cpcalendars|cpcontacts|webdisk|webmail|whm)\.
  81. RewriteRule ^ - [END]
  82. </IfModule>
  83.  
  84. <LocationMatch "(^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?: Comodo DCV)?$|^/\.well-known/pki-validation/(?: Ballot169)?|^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$)">
  85. # Global DCV Exclude - Location
  86. Satisfy Any
  87. Order Allow,Deny
  88. Allow from all
  89. </LocationMatch>
  90.  
  91.  
  92.  
  93. # You can change this by using WHM, and navigating to the 'Apache Configuration' -> 'DirectoryIndex Priority' interface.
  94. <IfModule dir_module>
  95. DirectoryIndex index.php index.php5 index.php4 index.php3 index.perl index.pl index.plx index.ppl index.cgi index.jsp index.jp index.phtml index.shtml index.xhtml index.html index.htm index.wml Default.html Default.htm default.html default.htm home.html home.htm index.js
  96. </IfModule>
  97.  
  98. # You can change this by using WHM, and navigating to the 'Apache Configuration' -> 'Memory Usage Restrictions' interface.
  99.  
  100. # This setting is required by cPanel & WHM in order to provide access to a default webpage when none exists
  101. <Directory "/var/www/html">
  102. Options All
  103. AllowOverride None
  104. Require all granted
  105. </Directory>
  106.  
  107. # Required cPanel security policy: Disallow remote access to .htaccess, .htpasswd, .user.ini, and php.ini files
  108. <FilesMatch "^(\.ht(access|passwds?)|\.user\.ini|php\.ini)$">
  109. Require all denied
  110. </FilesMatch>
  111.  
  112. <IfModule alias_module>
  113. ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
  114. ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
  115. ScriptAliasMatch ^/?kpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
  116. ScriptAliasMatch ^/?securecontrolpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
  117. ScriptAliasMatch ^/?securecpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
  118. ScriptAliasMatch ^/?securewhm/?$ /usr/local/cpanel/cgi-sys/swhmredirect.cgi
  119. ScriptAliasMatch ^/?webmail$ /usr/local/cpanel/cgi-sys/wredirect.cgi
  120. ScriptAliasMatch ^/?webmail/ /usr/local/cpanel/cgi-sys/wredirect.cgi
  121. ScriptAliasMatch ^/?whm/?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi
  122.  
  123. Alias /bandwidth /usr/local/bandmin/htdocs/
  124. Alias /img-sys /usr/local/cpanel/img-sys/
  125. Alias /java-sys /usr/local/cpanel/java-sys/
  126. Alias /mailman/archives /usr/local/cpanel/3rdparty/mailman/archives/public/
  127. Alias /pipermail /usr/local/cpanel/3rdparty/mailman/archives/public/
  128. Alias /sys_cpanel /usr/local/cpanel/sys_cpanel/
  129.  
  130. ScriptAlias /cgi-sys /usr/local/cpanel/cgi-sys/
  131. ScriptAlias /mailman /usr/local/cpanel/3rdparty/mailman/cgi-bin/
  132.  
  133. </IfModule>
  134.  
  135. # This can be configured in the cPanel 'Leech Protection' interface.
  136. <IfModule rewrite_module>
  137. RewriteEngine on
  138. RewriteMap LeechProtect prg:/usr/local/cpanel/bin/leechprotect
  139. Mutex file:/run/apache2 rewrite-map
  140. </IfModule>
  141.  
  142. <IfModule mime_module>
  143. TypesConfig conf/mime.types
  144.  
  145. AddType application/x-compress .Z
  146. AddType application/x-gzip .gz .tgz
  147. AddType text/html .shtml
  148. AddType application/x-tar .tgz
  149. AddType text/vnd.wap.wml .wml
  150. AddType image/vnd.wap.wbmp .wbmp
  151. AddType text/vnd.wap.wmlscript .wmls
  152. AddType application/vnd.wap.wmlc .wmlc
  153. AddType application/vnd.wap.wmlscriptc .wmlsc
  154.  
  155. # These extensions are used to redirect incoming requests to WHM
  156. AddHandler cgi-script .cgi .pl .plx .ppl .perl
  157.  
  158. # This is used for custom error documents
  159. AddHandler server-parsed .shtml
  160. </IfModule>
  161.  
  162. # You can change this by using WHM, and updating the 'Tweak Settings' -> 'System' -> 'Allow server-info' option.
  163. <IfModule status_module>
  164. # This is used by the WHM 'Apache Status' application
  165. <Location /whm-server-status>
  166. SetHandler server-status
  167. Order deny,allow
  168. Deny from all
  169. Allow from 127.0.0.1 ::1
  170. <IfModule security2_module>
  171. SecRuleEngine Off
  172. </IfModule>
  173. </Location>
  174.  
  175. </IfModule>
  176.  
  177. # Required cPanel security policy: disable userdir when mod_ruid2 or mpm_itk or mod_passenger are loaded
  178. <IfModule userdir_module>
  179. UserDir public_html
  180.  
  181. <IfModule ruid2_module>
  182. UserDir disabled
  183. </IfModule>
  184. <IfModule mpm_itk.c>
  185. UserDir disabled
  186. </IfModule>
  187. <IfModule mod_passenger.c>
  188. UserDir disabled
  189. </IfModule>
  190. </IfModule>
  191.  
  192. <IfModule mod_log_config.c>
  193. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedvhost
  194. <IfModule logio_module>
  195. LogFormat "%v %{%s}t %I .\n%v %{%s}t %O ." bytesvhost
  196. </IfModule>
  197. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  198. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b" common
  199. LogFormat "%{Referer}i -> %U" referer
  200. LogFormat "%{User-agent}i" agent
  201. <IfModule logio_module>
  202. CustomLog "|/usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/domlogs --main=leaf.treepool.org --suffix=-bytes_log" bytesvhost
  203. </IfModule>
  204. CustomLog "|/usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/domlogs --main=leaf.treepool.org --mainout=/etc/apache2/logs/access_log" combinedvhost
  205. </IfModule>
  206.  
  207.  
  208. # The Listen port can be updated using 'Tweak Settings' -> 'System',
  209. # However, if you have any Apache Reserved IPs, then this Tweak setting will
  210. # be ignored. Instead, each IP on your system (excluding Apache Reserved IPs)
  211. # will be listed here.
  212. Listen 0.0.0.0:80
  213. Listen [::]:80
  214.  
  215. <IfModule ssl_module>
  216. # cipher and protocol directives can be set in WHM under 'Apache Configuration' -> 'Global Configuration'
  217. SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
  218. SSLProtocol TLSv1.2
  219. SSLPassPhraseDialog builtin
  220.  
  221. <IfModule socache_shmcb_module>
  222. SSLUseStapling on
  223. SSLStaplingCache shmcb:/run/apache2/stapling_cache_shmcb(256000)
  224.  
  225. # Prevent browsers from failing if an OCSP server is temporarily broken.
  226. SSLStaplingReturnResponderErrors off
  227. SSLStaplingErrorCacheTimeout 60
  228. SSLStaplingFakeTryLater off
  229. SSLStaplingResponderTimeout 3
  230. SSLSessionCache shmcb:/run/apache2/ssl_gcache_data_shmcb(1024000)
  231. </IfModule>
  232. <IfModule !socache_shmcb_module>
  233. SSLSessionCache dbm:/run/apache2/ssl_gcache_data_dbm
  234. </IfModule>
  235.  
  236. SSLSessionCacheTimeout 300
  237. Mutex file:/run/apache2 ssl-cache
  238. SSLRandomSeed startup builtin
  239. SSLRandomSeed connect builtin
  240.  
  241. # The Listen port can be updated using 'Tweak Settings' -> 'System',
  242. # However, if you have any Apache Reserved IPs, then this Tweak setting will
  243. # be ignored. Instead, each IP on your system (excluding Apache Reserved IPs)
  244. # will be listed here.
  245. Listen 0.0.0.0:443
  246. Listen [::]:443
  247.  
  248. AddType application/x-x509-ca-cert .crt
  249. AddType application/x-pkcs7-crl .crl
  250. </IfModule>
  251.  
  252. Include "/etc/apache2/conf.d/*.conf"
  253.  
  254. Include "/etc/apache2/conf.d/includes/account_suspensions.conf"
  255. Include "/etc/apache2/conf.d/includes/errordocument.conf"
  256.  
  257. # Administrator locations for safely globally altering all virtualhost configurations
  258. Include "/etc/apache2/conf.d/includes/pre_virtualhost_global.conf"
  259.  
  260. ProxyPass /___proxy_subdomain_ws_cpanel ws://127.0.0.1:2082 max=1 retry=0
  261. ProxyPass /___proxy_subdomain_ws_whm ws://127.0.0.1:2086 max=1 retry=0
  262. ProxyPass /___proxy_subdomain_ws_webmail ws://127.0.0.1:2095 max=1 retry=0
  263.  
  264.  
  265. ##################################################
  266. ##################################################
  267. #
  268. # Define default vhosts for shared IPs
  269. #
  270. ##################################################
  271. ##################################################
  272.  
  273. <VirtualHost 127.0.0.1:80>
  274. ServerName leaf.treepool.org
  275. DocumentRoot /var/www/html
  276. ServerAdmin sintec857@gmail.com
  277.  
  278. <Directory "/var/www/html">
  279. AllowOverride All
  280. </Directory>
  281.  
  282.  
  283. <IfModule suphp_module>
  284. suPHP_UserGroup nobody nobody
  285. </IfModule>
  286.  
  287. </VirtualHost>
  288.  
  289. <VirtualHost 206.189.215.151:80>
  290. ServerName leaf.treepool.org
  291. DocumentRoot /var/www/html
  292. ServerAdmin sintec857@gmail.com
  293.  
  294. <Directory "/var/www/html">
  295. AllowOverride All
  296. </Directory>
  297.  
  298.  
  299. <IfModule suphp_module>
  300. suPHP_UserGroup nobody nobody
  301. </IfModule>
  302.  
  303. </VirtualHost>
  304.  
  305.  
  306. ##################################################
  307. ##################################################
  308. #
  309. # Define default vhosts for unbound IPs
  310. #
  311. ##################################################
  312. ##################################################
  313.  
  314. <VirtualHost *>
  315. ServerName leaf.treepool.org
  316. DocumentRoot /var/www/html
  317. ServerAdmin sintec857@gmail.com
  318.  
  319. <Directory "/var/www/html">
  320. AllowOverride All
  321. </Directory>
  322.  
  323.  
  324. <IfModule suphp_module>
  325. suPHP_UserGroup nobody nobody
  326. </IfModule>
  327.  
  328. </VirtualHost>
  329.  
  330. ##################################################
  331. ##################################################
  332. #
  333. # Define the virtual host configurtion for user domains
  334. #
  335. ##################################################
  336. ##################################################
  337.  
  338. # BEGIN: HTTP vhosts list
  339.  
  340. <VirtualHost 206.189.215.151:80>
  341. ServerName treepool.org
  342. ServerAlias mail.treepool.org www.treepool.org
  343. DocumentRoot /home/treepool/public_html
  344. ServerAdmin webmaster@treepool.org
  345. UseCanonicalName Off
  346.  
  347. ## User treepool # Needed for Cpanel::ApacheConf
  348. <IfModule userdir_module>
  349. <IfModule !mpm_itk.c>
  350. <IfModule !ruid2_module>
  351. <IfModule !mod_passenger.c>
  352. UserDir disabled
  353. UserDir enabled treepool
  354. </IfModule>
  355. </IfModule>
  356. </IfModule>
  357. </IfModule>
  358.  
  359. # Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4.
  360. # To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in
  361. # the user's .htaccess file. For more information, please read:
  362. # http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
  363. <IfModule include_module>
  364. <Directory "/home/treepool/public_html">
  365. SSILegacyExprParser On
  366. </Directory>
  367. </IfModule>
  368.  
  369.  
  370.  
  371. <IfModule suphp_module>
  372. suPHP_UserGroup treepool treepool
  373. </IfModule>
  374. <IfModule suexec_module>
  375. <IfModule !mod_ruid2.c>
  376. SuexecUserGroup treepool treepool
  377. </IfModule>
  378. </IfModule>
  379. <IfModule ruid2_module>
  380. RMode config
  381. RUidGid treepool treepool
  382. </IfModule>
  383. <IfModule mpm_itk.c>
  384. # For more information on MPM ITK, please read:
  385. # http://mpm-itk.sesse.net/
  386. AssignUserID treepool treepool
  387. </IfModule>
  388. <IfModule mod_passenger.c>
  389. PassengerUser treepool
  390. PassengerGroup treepool
  391. </IfModule>
  392.  
  393. <IfModule alias_module>
  394. ScriptAlias /cgi-bin/ /home/treepool/public_html/cgi-bin/
  395. </IfModule>
  396.  
  397.  
  398. # Global DCV Rewrite Exclude
  399. <IfModule rewrite_module>
  400. RewriteOptions Inherit
  401. </IfModule>
  402.  
  403.  
  404.  
  405. # To customize this VirtualHost use an include file at the following location
  406. # Include "/etc/apache2/conf.d/userdata/std/2_4/treepool/treepool.org/*.conf"
  407. </VirtualHost>
  408. # END: HTTP vhosts list
  409.  
  410. # BEGIN: HTTPS vhosts list
  411.  
  412. <VirtualHost 206.189.215.151:443>
  413. ServerName treepool.org
  414. ServerAlias mail.treepool.org www.treepool.org webdisk.treepool.org webmail.treepool.org cpanel.treepool.org
  415. DocumentRoot /home/treepool/public_html
  416. ServerAdmin webmaster@treepool.org
  417. UseCanonicalName Off
  418.  
  419. ## User treepool # Needed for Cpanel::ApacheConf
  420. <IfModule userdir_module>
  421. <IfModule !mpm_itk.c>
  422. <IfModule !ruid2_module>
  423. <IfModule !mod_passenger.c>
  424. UserDir disabled
  425. UserDir enabled treepool
  426. </IfModule>
  427. </IfModule>
  428. </IfModule>
  429. </IfModule>
  430.  
  431. # Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4.
  432. # To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in
  433. # the user's .htaccess file. For more information, please read:
  434. # http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
  435. <IfModule mod_include.c>
  436. <Directory "/home/treepool/public_html">
  437. SSILegacyExprParser On
  438. </Directory>
  439. </IfModule>
  440.  
  441.  
  442. <Proxymatch ^https?://127\.0\.0\.1:(2082|2083|2077|2078|2079|2080|2086|2087|2095|2096)/>
  443. <IfModule security2_module>
  444. SecRuleEngine Off
  445. </IfModule>
  446. </Proxymatch>
  447.  
  448. <IfModule mod_suphp.c>
  449. suPHP_UserGroup treepool treepool
  450. </IfModule>
  451. <IfModule suexec_module>
  452. <IfModule !mod_ruid2.c>
  453. SuexecUserGroup treepool treepool
  454. </IfModule>
  455. </IfModule>
  456. <IfModule ruid2_module>
  457. RMode config
  458. RUidGid treepool treepool
  459. </IfModule>
  460. <IfModule mpm_itk.c>
  461. # For more information on MPM ITK, please read:
  462. # http://mpm-itk.sesse.net/
  463. AssignUserID treepool treepool
  464. </IfModule>
  465. <IfModule mod_passenger.c>
  466. PassengerUser treepool
  467. PassengerGroup treepool
  468. </IfModule>
  469.  
  470. <IfModule alias_module>
  471. ScriptAlias /cgi-bin/ /home/treepool/public_html/cgi-bin/
  472. </IfModule>
  473. <IfModule ssl_module>
  474. SSLEngine on
  475.  
  476. SSLCertificateFile /var/cpanel/ssl/apache_tls/treepool.org/combined
  477.  
  478. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  479. <Directory "/home/treepool/public_html/cgi-bin">
  480. SSLOptions +StdEnvVars
  481. </Directory>
  482. </IfModule>
  483.  
  484.  
  485.  
  486. # To customize this VirtualHost use an include file at the following location
  487. # Include "/etc/apache2/conf.d/userdata/ssl/2_4/treepool/treepool.org/*.conf"
  488.  
  489. <IfModule headers_module>
  490. RequestHeader set X-HTTPS 1
  491. </IfModule>
  492.  
  493. RewriteEngine On
  494. RewriteCond %{HTTP_HOST} =cpanel.treepool.org [OR]
  495. RewriteCond %{HTTP_HOST} =cpanel.treepool.org:443
  496. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  497.  
  498. RewriteRule ^/(.*) /___proxy_subdomain_cpanel/$1 [PT]
  499. ProxyPass "/___proxy_subdomain_cpanel" "http://127.0.0.1:2082" max=1 retry=0
  500. RewriteCond %{HTTP_HOST} =webdisk.treepool.org [OR]
  501. RewriteCond %{HTTP_HOST} =webdisk.treepool.org:443
  502. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  503.  
  504. RewriteRule ^/(.*) /___proxy_subdomain_webdisk/$1 [PT]
  505. ProxyPass "/___proxy_subdomain_webdisk" "http://127.0.0.1:2077" max=1 retry=0
  506. RewriteCond %{HTTP_HOST} =webmail.treepool.org [OR]
  507. RewriteCond %{HTTP_HOST} =webmail.treepool.org:443
  508. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  509.  
  510. RewriteRule ^/(.*) /___proxy_subdomain_webmail/$1 [PT]
  511. ProxyPass "/___proxy_subdomain_webmail" "http://127.0.0.1:2095" max=1 retry=0
  512.  
  513. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  514. RewriteCond %{HTTP_HOST} =cpanel.treepool.org [OR]
  515. RewriteCond %{HTTP_HOST} =cpanel.treepool.org:443
  516.  
  517. RewriteRule ^/(.*) /___proxy_subdomain_ws_cpanel/$1 [PT]
  518. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  519. RewriteCond %{HTTP_HOST} =webmail.treepool.org [OR]
  520. RewriteCond %{HTTP_HOST} =webmail.treepool.org:443
  521.  
  522. RewriteRule ^/(.*) /___proxy_subdomain_ws_webmail/$1 [PT]
  523. </VirtualHost>
  524. # END: HTTPS vhosts list
  525.  
  526. ##################################################
  527. ##################################################
  528. #
  529. # Define the main cPanel & WHM proxy subdomains
  530. #
  531. ##################################################
  532. ##################################################
  533.  
  534. # CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS
  535. <VirtualHost 206.189.215.151:80 127.0.0.1:80>
  536. ServerName proxy-subdomains-vhost.localhost
  537. ServerAlias cpanel.* whm.* webmail.* webdisk.* cpcalendars.* cpcontacts.*
  538.  
  539. DocumentRoot /var/www/html
  540. ServerAdmin sintec857@gmail.com
  541.  
  542. <IfModule suphp_module>
  543. suPHP_UserGroup nobody nobody
  544. </IfModule>
  545. <Proxy "*">
  546. <IfModule security2_module>
  547. SecRuleEngine Off
  548. </IfModule>
  549. </Proxy>
  550.  
  551. <Directory "/var/www/html">
  552. AllowOverride All
  553. </Directory>
  554.  
  555.  
  556.  
  557.  
  558. ScriptAlias /.cpanel/dcv /usr/local/cpanel/cgi-priv/get_local.cgi
  559.  
  560. RewriteEngine On
  561.  
  562. RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ [OR]
  563. RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/(?:\ Ballot169)? [OR]
  564. RewriteCond %{REQUEST_URI} ^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
  565. RewriteRule ^ /.cpanel/dcv [passthrough]
  566.  
  567. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  568. RewriteCond %{HTTP_HOST} ^cpanel\.
  569. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  570.  
  571. RewriteRule ^/(.*) /___proxy_subdomain_cpanel/$1 [PT]
  572. ProxyPass "/___proxy_subdomain_cpanel" "http://127.0.0.1:2082" max=1 retry=0
  573.  
  574.  
  575. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  576. RewriteCond %{HTTP_HOST} ^webmail\.
  577. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  578.  
  579. RewriteRule ^/(.*) /___proxy_subdomain_webmail/$1 [PT]
  580. ProxyPass "/___proxy_subdomain_webmail" "http://127.0.0.1:2095" max=1 retry=0
  581.  
  582.  
  583. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  584. RewriteCond %{HTTP_HOST} ^whm\.
  585. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  586.  
  587. RewriteRule ^/(.*) /___proxy_subdomain_whm/$1 [PT]
  588. ProxyPass "/___proxy_subdomain_whm" "http://127.0.0.1:2086" max=1 retry=0
  589.  
  590.  
  591. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  592. RewriteCond %{HTTP_HOST} ^webdisk\.
  593.  
  594. RewriteRule ^/(.*) /___proxy_subdomain_webdisk/$1 [PT]
  595. ProxyPass "/___proxy_subdomain_webdisk" "http://127.0.0.1:2077" max=1 retry=0
  596.  
  597.  
  598. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  599. RewriteCond %{HTTP_HOST} ^cpcalendars\.
  600.  
  601. RewriteRule ^/(.*) /___proxy_subdomain_cpcalendars/$1 [PT]
  602. ProxyPass "/___proxy_subdomain_cpcalendars" "http://127.0.0.1:2079" max=1 retry=0
  603.  
  604.  
  605. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  606. RewriteCond %{HTTP_HOST} ^cpcontacts\.
  607.  
  608. RewriteRule ^/(.*) /___proxy_subdomain_cpcontacts/$1 [PT]
  609. ProxyPass "/___proxy_subdomain_cpcontacts" "http://127.0.0.1:2079" max=1 retry=0
  610.  
  611.  
  612.  
  613.  
  614. RewriteCond %{HTTP_HOST} ^cpanel\.
  615. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  616. RewriteRule ^/(.*) /___proxy_subdomain_ws_cpanel/$1 [PT]
  617.  
  618. RewriteCond %{HTTP_HOST} ^webmail\.
  619. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  620. RewriteRule ^/(.*) /___proxy_subdomain_ws_webmail/$1 [PT]
  621.  
  622. RewriteCond %{HTTP_HOST} ^whm\.
  623. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  624. RewriteRule ^/(.*) /___proxy_subdomain_ws_whm/$1 [PT]
  625.  
  626.  
  627. UseCanonicalName Off
  628.  
  629. <IfModule security2_module>
  630. SecRuleEngine On
  631. </IfModule>
  632. </VirtualHost>
  633.  
  634.  
  635. # CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS
  636. <VirtualHost 206.189.215.151:443 127.0.0.1:443>
  637. ServerName leaf.treepool.org
  638.  
  639. ServerAlias cpanel.* whm.* webmail.* webdisk.* cpcalendars.* cpcontacts.*
  640.  
  641. DocumentRoot /var/www/html
  642. ServerAdmin sintec857@gmail.com
  643.  
  644. <IfModule suphp_module>
  645. suPHP_UserGroup nobody nobody
  646. </IfModule>
  647. <Proxy "*">
  648. <IfModule security2_module>
  649. SecRuleEngine Off
  650. </IfModule>
  651. </Proxy>
  652.  
  653. <Directory "/var/www/html">
  654. AllowOverride All
  655. </Directory>
  656.  
  657.  
  658.  
  659.  
  660. RewriteEngine On
  661.  
  662. <IfModule ssl_module>
  663. SSLEngine on
  664.  
  665.  
  666. SSLCertificateFile /var/cpanel/ssl/cpanel/cpanel.pem
  667. SSLCertificateKeyFile /var/cpanel/ssl/cpanel/cpanel.pem
  668. SSLCertificateChainFile /var/cpanel/ssl/cpanel/cpanel.pem
  669. SSLUseStapling Off
  670. </IfModule>
  671.  
  672.  
  673.  
  674.  
  675. <IfModule headers_module>
  676. RequestHeader set X-HTTPS 1
  677. </IfModule>
  678.  
  679. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  680. RewriteCond %{HTTP_HOST} ^cpanel\.
  681. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  682.  
  683. RewriteRule ^/(.*) /___proxy_subdomain_cpanel/$1 [PT]
  684. ProxyPass "/___proxy_subdomain_cpanel" "http://127.0.0.1:2082" max=1 retry=0
  685.  
  686.  
  687. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  688. RewriteCond %{HTTP_HOST} ^webmail\.
  689. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  690.  
  691. RewriteRule ^/(.*) /___proxy_subdomain_webmail/$1 [PT]
  692. ProxyPass "/___proxy_subdomain_webmail" "http://127.0.0.1:2095" max=1 retry=0
  693.  
  694.  
  695. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  696. RewriteCond %{HTTP_HOST} ^whm\.
  697. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  698.  
  699. RewriteRule ^/(.*) /___proxy_subdomain_whm/$1 [PT]
  700. ProxyPass "/___proxy_subdomain_whm" "http://127.0.0.1:2086" max=1 retry=0
  701.  
  702.  
  703. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  704. RewriteCond %{HTTP_HOST} ^webdisk\.
  705.  
  706. RewriteRule ^/(.*) /___proxy_subdomain_webdisk/$1 [PT]
  707. ProxyPass "/___proxy_subdomain_webdisk" "http://127.0.0.1:2077" max=1 retry=0
  708.  
  709.  
  710. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  711. RewriteCond %{HTTP_HOST} ^cpcontacts\.
  712.  
  713. RewriteRule ^/(.*) /___proxy_subdomain_cpcontacts/$1 [PT]
  714. ProxyPass "/___proxy_subdomain_cpcontacts" "http://127.0.0.1:2079" max=1 retry=0
  715.  
  716.  
  717. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  718. RewriteCond %{HTTP_HOST} ^cpcalendars\.
  719.  
  720. RewriteRule ^/(.*) /___proxy_subdomain_cpcalendars/$1 [PT]
  721. ProxyPass "/___proxy_subdomain_cpcalendars" "http://127.0.0.1:2079" max=1 retry=0
  722.  
  723.  
  724.  
  725.  
  726. RewriteCond %{HTTP_HOST} ^cpanel\.
  727. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  728. RewriteRule ^/(.*) /___proxy_subdomain_ws_cpanel/$1 [PT]
  729.  
  730. RewriteCond %{HTTP_HOST} ^webmail\.
  731. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  732. RewriteRule ^/(.*) /___proxy_subdomain_ws_webmail/$1 [PT]
  733.  
  734. RewriteCond %{HTTP_HOST} ^whm\.
  735. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  736. RewriteRule ^/(.*) /___proxy_subdomain_ws_whm/$1 [PT]
  737.  
  738.  
  739. UseCanonicalName Off
  740.  
  741. <IfModule security2_module>
  742. SecRuleEngine On
  743. </IfModule>
  744. </VirtualHost>
  745.  
  746. # Administrator locations for safely altering virtualhost configuration
  747. Include "/etc/apache2/conf.d/includes/post_virtualhost_global.conf"
  748.  
  749. ##################################################
  750. ##################################################
  751. #
  752. # Define the Domain Forwarding virtual hosts
  753. #
  754. ##################################################
  755. ##################################################
  756.  
  757. # Domain forwarding is currently disabled.
  758. # You can set this by logging into WHM, and navigating to the 'DNS Functions' => 'Setup/Edit Domain Forwarding' interface.
  759.  
  760.  
  761. ##################################################
  762. ##################################################
  763. #
  764. # Default SSL Hostname Virtual Host
  765. #
  766. ##################################################
  767. ##################################################
  768. <VirtualHost 127.0.0.1:443 206.189.215.151:443 *:443>
  769. ServerName leaf.treepool.org
  770. DocumentRoot /var/www/html
  771.  
  772. ServerAdmin sintec857@gmail.com
  773. <IfModule suphp_module>
  774. suPHP_UserGroup nobody nobody
  775. </IfModule>
  776. <Directory "/var/www/html">
  777. AllowOverride All
  778. </Directory>
  779. <IfModule ssl_module>
  780. SSLEngine on
  781. SSLCertificateFile /var/cpanel/ssl/cpanel/cpanel.pem
  782. SSLCertificateKeyFile /var/cpanel/ssl/cpanel/cpanel.pem
  783. SSLCertificateChainFile /var/cpanel/ssl/cpanel/cpanel.pem
  784. SSLUseStapling Off
  785. </IfModule>
  786.  
  787. UseCanonicalName Off
  788.  
  789. <IfModule security2_module>
  790. SecRuleEngine On
  791. </IfModule>
  792. </VirtualHost>
  793.  
  794. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  795. #
  796. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  797. # DO NOT EDIT. AUTOMATICALLY GENERATED. USE INCLUDE FILES IF YOU NEED TO MAKE A CHANGE
  798. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  799. #
  800. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement