Advertisement
Guest User

Untitled

a guest
Nov 28th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.73 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. <VirtualHost 206.189.215.151:80>
  306. ServerName app.treepool.org
  307. DocumentRoot /var/www/html
  308. ServerAdmin sintec857@gmail.com
  309.  
  310. <Directory "/var/www/html">
  311. AllowOverride All
  312. </Directory>
  313.  
  314.  
  315. <IfModule suphp_module>
  316. suPHP_UserGroup nobody nobody
  317. </IfModule>
  318.  
  319. </VirtualHost>
  320.  
  321.  
  322. ##################################################
  323. ##################################################
  324. #
  325. # Define default vhosts for unbound IPs
  326. #
  327. ##################################################
  328. ##################################################
  329.  
  330. <VirtualHost *>
  331. ServerName leaf.treepool.org
  332. DocumentRoot /var/www/html
  333. ServerAdmin sintec857@gmail.com
  334.  
  335. <Directory "/var/www/html">
  336. AllowOverride All
  337. </Directory>
  338.  
  339.  
  340. <IfModule suphp_module>
  341. suPHP_UserGroup nobody nobody
  342. </IfModule>
  343.  
  344. </VirtualHost>
  345.  
  346. ##################################################
  347. ##################################################
  348. #
  349. # Define the virtual host configurtion for user domains
  350. #
  351. ##################################################
  352. ##################################################
  353.  
  354. # BEGIN: HTTP vhosts list
  355.  
  356. <VirtualHost 206.189.215.151:80>
  357. ServerName treepool.org
  358. ServerAlias mail.treepool.org www.treepool.org
  359. DocumentRoot /home/treepool/public_html
  360. ServerAdmin webmaster@treepool.org
  361. UseCanonicalName Off
  362.  
  363. ## User treepool # Needed for Cpanel::ApacheConf
  364. <IfModule userdir_module>
  365. <IfModule !mpm_itk.c>
  366. <IfModule !ruid2_module>
  367. <IfModule !mod_passenger.c>
  368. UserDir disabled
  369. UserDir enabled treepool
  370. </IfModule>
  371. </IfModule>
  372. </IfModule>
  373. </IfModule>
  374.  
  375. # Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4.
  376. # To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in
  377. # the user's .htaccess file. For more information, please read:
  378. # http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
  379. <IfModule include_module>
  380. <Directory "/home/treepool/public_html">
  381. SSILegacyExprParser On
  382. </Directory>
  383. </IfModule>
  384.  
  385.  
  386.  
  387. <IfModule suphp_module>
  388. suPHP_UserGroup treepool treepool
  389. </IfModule>
  390. <IfModule suexec_module>
  391. <IfModule !mod_ruid2.c>
  392. SuexecUserGroup treepool treepool
  393. </IfModule>
  394. </IfModule>
  395. <IfModule ruid2_module>
  396. RMode config
  397. RUidGid treepool treepool
  398. </IfModule>
  399. <IfModule mpm_itk.c>
  400. # For more information on MPM ITK, please read:
  401. # http://mpm-itk.sesse.net/
  402. AssignUserID treepool treepool
  403. </IfModule>
  404. <IfModule mod_passenger.c>
  405. PassengerUser treepool
  406. PassengerGroup treepool
  407. </IfModule>
  408.  
  409. <IfModule alias_module>
  410. ScriptAlias /cgi-bin/ /home/treepool/public_html/cgi-bin/
  411. </IfModule>
  412.  
  413.  
  414. # Global DCV Rewrite Exclude
  415. <IfModule rewrite_module>
  416. RewriteOptions Inherit
  417. </IfModule>
  418.  
  419.  
  420.  
  421. # To customize this VirtualHost use an include file at the following location
  422. # Include "/etc/apache2/conf.d/userdata/std/2_4/treepool/treepool.org/*.conf"
  423. </VirtualHost>
  424. # END: HTTP vhosts list
  425.  
  426. # BEGIN: HTTPS vhosts list
  427.  
  428. <VirtualHost 206.189.215.151:443>
  429. ServerName treepool.org
  430. ServerAlias mail.treepool.org www.treepool.org webdisk.treepool.org webmail.treepool.org cpanel.treepool.org
  431. DocumentRoot /home/treepool/public_html
  432. ServerAdmin webmaster@treepool.org
  433. UseCanonicalName Off
  434.  
  435. ## User treepool # Needed for Cpanel::ApacheConf
  436. <IfModule userdir_module>
  437. <IfModule !mpm_itk.c>
  438. <IfModule !ruid2_module>
  439. <IfModule !mod_passenger.c>
  440. UserDir disabled
  441. UserDir enabled treepool
  442. </IfModule>
  443. </IfModule>
  444. </IfModule>
  445. </IfModule>
  446.  
  447. # Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4.
  448. # To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in
  449. # the user's .htaccess file. For more information, please read:
  450. # http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
  451. <IfModule mod_include.c>
  452. <Directory "/home/treepool/public_html">
  453. SSILegacyExprParser On
  454. </Directory>
  455. </IfModule>
  456.  
  457.  
  458. <Proxymatch ^https?://127\.0\.0\.1:(2082|2083|2077|2078|2079|2080|2086|2087|2095|2096)/>
  459. <IfModule security2_module>
  460. SecRuleEngine Off
  461. </IfModule>
  462. </Proxymatch>
  463.  
  464. <IfModule mod_suphp.c>
  465. suPHP_UserGroup treepool treepool
  466. </IfModule>
  467. <IfModule suexec_module>
  468. <IfModule !mod_ruid2.c>
  469. SuexecUserGroup treepool treepool
  470. </IfModule>
  471. </IfModule>
  472. <IfModule ruid2_module>
  473. RMode config
  474. RUidGid treepool treepool
  475. </IfModule>
  476. <IfModule mpm_itk.c>
  477. # For more information on MPM ITK, please read:
  478. # http://mpm-itk.sesse.net/
  479. AssignUserID treepool treepool
  480. </IfModule>
  481. <IfModule mod_passenger.c>
  482. PassengerUser treepool
  483. PassengerGroup treepool
  484. </IfModule>
  485.  
  486. <IfModule alias_module>
  487. ScriptAlias /cgi-bin/ /home/treepool/public_html/cgi-bin/
  488. </IfModule>
  489. <IfModule ssl_module>
  490. SSLEngine on
  491.  
  492. SSLCertificateFile /var/cpanel/ssl/apache_tls/treepool.org/combined
  493.  
  494. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  495. <Directory "/home/treepool/public_html/cgi-bin">
  496. SSLOptions +StdEnvVars
  497. </Directory>
  498. </IfModule>
  499.  
  500.  
  501.  
  502. # To customize this VirtualHost use an include file at the following location
  503. # Include "/etc/apache2/conf.d/userdata/ssl/2_4/treepool/treepool.org/*.conf"
  504.  
  505. <IfModule headers_module>
  506. RequestHeader set X-HTTPS 1
  507. </IfModule>
  508.  
  509. RewriteEngine On
  510. RewriteCond %{HTTP_HOST} =cpanel.treepool.org [OR]
  511. RewriteCond %{HTTP_HOST} =cpanel.treepool.org:443
  512. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  513.  
  514. RewriteRule ^/(.*) /___proxy_subdomain_cpanel/$1 [PT]
  515. ProxyPass "/___proxy_subdomain_cpanel" "http://127.0.0.1:2082" max=1 retry=0
  516. RewriteCond %{HTTP_HOST} =webdisk.treepool.org [OR]
  517. RewriteCond %{HTTP_HOST} =webdisk.treepool.org:443
  518. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  519.  
  520. RewriteRule ^/(.*) /___proxy_subdomain_webdisk/$1 [PT]
  521. ProxyPass "/___proxy_subdomain_webdisk" "http://127.0.0.1:2077" max=1 retry=0
  522. RewriteCond %{HTTP_HOST} =webmail.treepool.org [OR]
  523. RewriteCond %{HTTP_HOST} =webmail.treepool.org:443
  524. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  525.  
  526. RewriteRule ^/(.*) /___proxy_subdomain_webmail/$1 [PT]
  527. ProxyPass "/___proxy_subdomain_webmail" "http://127.0.0.1:2095" max=1 retry=0
  528.  
  529. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  530. RewriteCond %{HTTP_HOST} =cpanel.treepool.org [OR]
  531. RewriteCond %{HTTP_HOST} =cpanel.treepool.org:443
  532.  
  533. RewriteRule ^/(.*) /___proxy_subdomain_ws_cpanel/$1 [PT]
  534. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  535. RewriteCond %{HTTP_HOST} =webmail.treepool.org [OR]
  536. RewriteCond %{HTTP_HOST} =webmail.treepool.org:443
  537.  
  538. RewriteRule ^/(.*) /___proxy_subdomain_ws_webmail/$1 [PT]
  539. </VirtualHost>
  540. # END: HTTPS vhosts list
  541.  
  542. ##################################################
  543. ##################################################
  544. #
  545. # Define the main cPanel & WHM proxy subdomains
  546. #
  547. ##################################################
  548. ##################################################
  549.  
  550. # CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS
  551. <VirtualHost 206.189.215.151:80 127.0.0.1:80>
  552. ServerName proxy-subdomains-vhost.localhost
  553. ServerAlias cpanel.* whm.* webmail.* webdisk.* cpcalendars.* cpcontacts.*
  554.  
  555. DocumentRoot /var/www/html
  556. ServerAdmin sintec857@gmail.com
  557.  
  558. <IfModule suphp_module>
  559. suPHP_UserGroup nobody nobody
  560. </IfModule>
  561. <Proxy "*">
  562. <IfModule security2_module>
  563. SecRuleEngine Off
  564. </IfModule>
  565. </Proxy>
  566.  
  567. <Directory "/var/www/html">
  568. AllowOverride All
  569. </Directory>
  570.  
  571.  
  572.  
  573.  
  574. ScriptAlias /.cpanel/dcv /usr/local/cpanel/cgi-priv/get_local.cgi
  575.  
  576. RewriteEngine On
  577.  
  578. RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ [OR]
  579. RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/(?:\ Ballot169)? [OR]
  580. RewriteCond %{REQUEST_URI} ^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
  581. RewriteRule ^ /.cpanel/dcv [passthrough]
  582.  
  583. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  584. RewriteCond %{HTTP_HOST} ^cpanel\.
  585. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  586.  
  587. RewriteRule ^/(.*) /___proxy_subdomain_cpanel/$1 [PT]
  588. ProxyPass "/___proxy_subdomain_cpanel" "http://127.0.0.1:2082" max=1 retry=0
  589.  
  590.  
  591. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  592. RewriteCond %{HTTP_HOST} ^webmail\.
  593. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  594.  
  595. RewriteRule ^/(.*) /___proxy_subdomain_webmail/$1 [PT]
  596. ProxyPass "/___proxy_subdomain_webmail" "http://127.0.0.1:2095" max=1 retry=0
  597.  
  598.  
  599. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  600. RewriteCond %{HTTP_HOST} ^whm\.
  601. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  602.  
  603. RewriteRule ^/(.*) /___proxy_subdomain_whm/$1 [PT]
  604. ProxyPass "/___proxy_subdomain_whm" "http://127.0.0.1:2086" max=1 retry=0
  605.  
  606.  
  607. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  608. RewriteCond %{HTTP_HOST} ^webdisk\.
  609.  
  610. RewriteRule ^/(.*) /___proxy_subdomain_webdisk/$1 [PT]
  611. ProxyPass "/___proxy_subdomain_webdisk" "http://127.0.0.1:2077" max=1 retry=0
  612.  
  613.  
  614. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  615. RewriteCond %{HTTP_HOST} ^cpcalendars\.
  616.  
  617. RewriteRule ^/(.*) /___proxy_subdomain_cpcalendars/$1 [PT]
  618. ProxyPass "/___proxy_subdomain_cpcalendars" "http://127.0.0.1:2079" max=1 retry=0
  619.  
  620.  
  621. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  622. RewriteCond %{HTTP_HOST} ^cpcontacts\.
  623.  
  624. RewriteRule ^/(.*) /___proxy_subdomain_cpcontacts/$1 [PT]
  625. ProxyPass "/___proxy_subdomain_cpcontacts" "http://127.0.0.1:2079" max=1 retry=0
  626.  
  627.  
  628.  
  629.  
  630. RewriteCond %{HTTP_HOST} ^cpanel\.
  631. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  632. RewriteRule ^/(.*) /___proxy_subdomain_ws_cpanel/$1 [PT]
  633.  
  634. RewriteCond %{HTTP_HOST} ^webmail\.
  635. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  636. RewriteRule ^/(.*) /___proxy_subdomain_ws_webmail/$1 [PT]
  637.  
  638. RewriteCond %{HTTP_HOST} ^whm\.
  639. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  640. RewriteRule ^/(.*) /___proxy_subdomain_ws_whm/$1 [PT]
  641.  
  642.  
  643. UseCanonicalName Off
  644.  
  645. <IfModule security2_module>
  646. SecRuleEngine On
  647. </IfModule>
  648. </VirtualHost>
  649.  
  650.  
  651. # CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS
  652. <VirtualHost 206.189.215.151:443 127.0.0.1:443>
  653. ServerName leaf.treepool.org
  654.  
  655. ServerAlias cpanel.* whm.* webmail.* webdisk.* cpcalendars.* cpcontacts.*
  656.  
  657. DocumentRoot /var/www/html
  658. ServerAdmin sintec857@gmail.com
  659.  
  660. <IfModule suphp_module>
  661. suPHP_UserGroup nobody nobody
  662. </IfModule>
  663. <Proxy "*">
  664. <IfModule security2_module>
  665. SecRuleEngine Off
  666. </IfModule>
  667. </Proxy>
  668.  
  669. <Directory "/var/www/html">
  670. AllowOverride All
  671. </Directory>
  672.  
  673.  
  674.  
  675.  
  676. RewriteEngine On
  677.  
  678. <IfModule ssl_module>
  679. SSLEngine on
  680.  
  681.  
  682. SSLCertificateFile /var/cpanel/ssl/cpanel/cpanel.pem
  683. SSLCertificateKeyFile /var/cpanel/ssl/cpanel/cpanel.pem
  684. SSLCertificateChainFile /var/cpanel/ssl/cpanel/cpanel.pem
  685. SSLUseStapling Off
  686. </IfModule>
  687.  
  688.  
  689.  
  690.  
  691. <IfModule headers_module>
  692. RequestHeader set X-HTTPS 1
  693. </IfModule>
  694.  
  695. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  696. RewriteCond %{HTTP_HOST} ^cpanel\.
  697. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  698.  
  699. RewriteRule ^/(.*) /___proxy_subdomain_cpanel/$1 [PT]
  700. ProxyPass "/___proxy_subdomain_cpanel" "http://127.0.0.1:2082" max=1 retry=0
  701.  
  702.  
  703. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  704. RewriteCond %{HTTP_HOST} ^webmail\.
  705. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  706.  
  707. RewriteRule ^/(.*) /___proxy_subdomain_webmail/$1 [PT]
  708. ProxyPass "/___proxy_subdomain_webmail" "http://127.0.0.1:2095" max=1 retry=0
  709.  
  710.  
  711. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  712. RewriteCond %{HTTP_HOST} ^whm\.
  713. RewriteCond %{HTTP:Upgrade} !websocket [nocase]
  714.  
  715. RewriteRule ^/(.*) /___proxy_subdomain_whm/$1 [PT]
  716. ProxyPass "/___proxy_subdomain_whm" "http://127.0.0.1:2086" max=1 retry=0
  717.  
  718.  
  719. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  720. RewriteCond %{HTTP_HOST} ^webdisk\.
  721.  
  722. RewriteRule ^/(.*) /___proxy_subdomain_webdisk/$1 [PT]
  723. ProxyPass "/___proxy_subdomain_webdisk" "http://127.0.0.1:2077" max=1 retry=0
  724.  
  725.  
  726. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  727. RewriteCond %{HTTP_HOST} ^cpcontacts\.
  728.  
  729. RewriteRule ^/(.*) /___proxy_subdomain_cpcontacts/$1 [PT]
  730. ProxyPass "/___proxy_subdomain_cpcontacts" "http://127.0.0.1:2079" max=1 retry=0
  731.  
  732.  
  733. RewriteCond %{HTTP_HOST} !^leaf.treepool.org$
  734. RewriteCond %{HTTP_HOST} ^cpcalendars\.
  735.  
  736. RewriteRule ^/(.*) /___proxy_subdomain_cpcalendars/$1 [PT]
  737. ProxyPass "/___proxy_subdomain_cpcalendars" "http://127.0.0.1:2079" max=1 retry=0
  738.  
  739.  
  740.  
  741.  
  742. RewriteCond %{HTTP_HOST} ^cpanel\.
  743. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  744. RewriteRule ^/(.*) /___proxy_subdomain_ws_cpanel/$1 [PT]
  745.  
  746. RewriteCond %{HTTP_HOST} ^webmail\.
  747. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  748. RewriteRule ^/(.*) /___proxy_subdomain_ws_webmail/$1 [PT]
  749.  
  750. RewriteCond %{HTTP_HOST} ^whm\.
  751. RewriteCond %{HTTP:Upgrade} websocket [nocase]
  752. RewriteRule ^/(.*) /___proxy_subdomain_ws_whm/$1 [PT]
  753.  
  754.  
  755. UseCanonicalName Off
  756.  
  757. <IfModule security2_module>
  758. SecRuleEngine On
  759. </IfModule>
  760. </VirtualHost>
  761.  
  762. # Administrator locations for safely altering virtualhost configuration
  763. Include "/etc/apache2/conf.d/includes/post_virtualhost_global.conf"
  764.  
  765. ##################################################
  766. ##################################################
  767. #
  768. # Define the Domain Forwarding virtual hosts
  769. #
  770. ##################################################
  771. ##################################################
  772.  
  773. # Domain forwarding is currently disabled.
  774. # You can set this by logging into WHM, and navigating to the 'DNS Functions' => 'Setup/Edit Domain Forwarding' interface.
  775.  
  776.  
  777. ##################################################
  778. ##################################################
  779. #
  780. # Default SSL Hostname Virtual Host
  781. #
  782. ##################################################
  783. ##################################################
  784. <VirtualHost 127.0.0.1:443 206.189.215.151:443 *:443>
  785. ServerName leaf.treepool.org
  786. DocumentRoot /var/www/html
  787.  
  788. ServerAdmin sintec857@gmail.com
  789. <IfModule suphp_module>
  790. suPHP_UserGroup nobody nobody
  791. </IfModule>
  792. <Directory "/var/www/html">
  793. AllowOverride All
  794. </Directory>
  795. <IfModule ssl_module>
  796. SSLEngine on
  797. SSLCertificateFile /var/cpanel/ssl/cpanel/cpanel.pem
  798. SSLCertificateKeyFile /var/cpanel/ssl/cpanel/cpanel.pem
  799. SSLCertificateChainFile /var/cpanel/ssl/cpanel/cpanel.pem
  800. SSLUseStapling Off
  801. </IfModule>
  802.  
  803. UseCanonicalName Off
  804.  
  805. <IfModule security2_module>
  806. SecRuleEngine On
  807. </IfModule>
  808. </VirtualHost>
  809.  
  810.  
  811. <VirtualHost 127.0.0.1:443 206.189.215.151:443 *:443>
  812. ServerName app.treepool.org
  813. DocumentRoot /var/www/html
  814.  
  815. ServerAdmin sintec857@gmail.com
  816. <IfModule suphp_module>
  817. suPHP_UserGroup nobody nobody
  818. </IfModule>
  819. <Directory "/var/www/html">
  820. AllowOverride All
  821. </Directory>
  822. <IfModule ssl_module>
  823. SSLEngine on
  824. SSLCertificateFile /var/cpanel/ssl/cpanel/cpanel.pem
  825. SSLCertificateKeyFile /var/cpanel/ssl/cpanel/cpanel.pem
  826. SSLCertificateChainFile /var/cpanel/ssl/cpanel/cpanel.pem
  827. SSLUseStapling Off
  828. </IfModule>
  829.  
  830. UseCanonicalName Off
  831.  
  832. <IfModule security2_module>
  833. SecRuleEngine On
  834. </IfModule>
  835. </VirtualHost>
  836.  
  837. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  838. #
  839. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  840. # DO NOT EDIT. AUTOMATICALLY GENERATED. USE INCLUDE FILES IF YOU NEED TO MAKE A CHANGE
  841. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  842. #
  843. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement