</VirtualHost>
<VirtualHost 151.106.35.13:443>
  ServerName ababet.ug
  ServerAlias mail.ababet.ug www.ababet.ug cpcalendars.ababet.ug webmail.ababet.ug cpanel.ababet.ug cpcontacts.ababet.ug webdisk.ababet.ug
  DocumentRoot /home/ababet/public_html
  ServerAdmin webmaster@ababet.ug
  UseCanonicalName Off

  ## User ababetug # Needed for Cpanel::ApacheConf
  <IfModule userdir_module>
    <IfModule !mpm_itk.c>
      <IfModule !ruid2_module>
        <IfModule !mod_passenger.c>
          UserDir disabled
          UserDir enabled ababetug 
        </IfModule>
      </IfModule>
    </IfModule>
  </IfModule>

  # Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4.
  # To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in
  # the user's .htaccess file.  For more information, please read:
  #    http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
  <IfModule mod_include.c>
    <Directory "/home/ababet/public_html">
      SSILegacyExprParser On
    </Directory>
  </IfModule>

  
  <Proxymatch ^https?://127\.0\.0\.1:(2082|2083|2077|2078|2079|2080|2086|2087|2095|2096)/>
       <IfModule security2_module>
          SecRuleEngine Off
       </IfModule>
  </Proxymatch>

  <IfModule mod_suphp.c>
    suPHP_UserGroup ababetug ababetug
  </IfModule>
  <IfModule suexec_module>
    <IfModule !mod_ruid2.c>
      SuexecUserGroup ababetug ababetug
    </IfModule>
  </IfModule>
  <IfModule ruid2_module>
    RMode config
    RUidGid ababetug ababetug
  </IfModule>
  <IfModule mpm_itk.c>
    # For more information on MPM ITK, please read:
    #   http://mpm-itk.sesse.net/
    AssignUserID ababetug ababetug
  </IfModule>
  <IfModule mod_passenger.c>
    PassengerUser ababetug
    PassengerGroup ababetug
  </IfModule>

  <IfModule alias_module>
    ScriptAlias /cgi-bin/ /home/ababet/public_html/cgi-bin/
  </IfModule>
  <IfModule ssl_module>
    SSLEngine on
    
    SSLCertificateFile /var/cpanel/ssl/apache_tls/ababet.ug/combined

    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    <Directory "/home/ababet/public_html/cgi-bin">
      SSLOptions +StdEnvVars
    </Directory>
  </IfModule>
    Include "/etc/apache2/conf.d/userdata/*.conf"
        
        
            
                
                
    Include "/etc/apache2/conf.d/userdata/ssl/2_4/*.conf"
    <IfModule proxy_fcgi_module>
        <FilesMatch \.(phtml|php[0-9]*)$>
            SetHandler proxy:unix:/opt/cpanel/ea-php72/root/usr/var/run/php-fpm/b7f17220e6fc879ce75542930672f844a26c8e12.sock|fcgi://ababet.ug
        </FilesMatch>
    </IfModule>




  # To customize this VirtualHost use an include file at the following location
  # Include "/etc/apache2/conf.d/userdata/ssl/2_4/ababetug/ababet.ug/*.conf"

    <IfModule headers_module>
    RequestHeader set X-HTTPS 1
    </IfModule>

    RewriteEngine On
            RewriteCond %{HTTP_HOST} =cpanel.ababet.ug [OR]
            RewriteCond %{HTTP_HOST} =cpanel.ababet.ug:443
        RewriteCond %{HTTP:Upgrade} !websocket   [nocase]

        RewriteRule ^/(.*) /___proxy_subdomain_cpanel/$1 [PT]
		ProxyPass "/___proxy_subdomain_cpanel" "http://127.0.0.1:2082" max=1 retry=0
            RewriteCond %{HTTP_HOST} =cpcalendars.ababet.ug [OR]
            RewriteCond %{HTTP_HOST} =cpcalendars.ababet.ug:443
        RewriteCond %{HTTP:Upgrade} !websocket   [nocase]

        RewriteRule ^/(.*) /___proxy_subdomain_cpcalendars/$1 [PT]
		ProxyPass "/___proxy_subdomain_cpcalendars" "http://127.0.0.1:2079" max=1 retry=0
            RewriteCond %{HTTP_HOST} =cpcontacts.ababet.ug [OR]
            RewriteCond %{HTTP_HOST} =cpcontacts.ababet.ug:443
        RewriteCond %{HTTP:Upgrade} !websocket   [nocase]

        RewriteRule ^/(.*) /___proxy_subdomain_cpcontacts/$1 [PT]
		ProxyPass "/___proxy_subdomain_cpcontacts" "http://127.0.0.1:2079" max=1 retry=0
            RewriteCond %{HTTP_HOST} =webdisk.ababet.ug [OR]
            RewriteCond %{HTTP_HOST} =webdisk.ababet.ug:443
        RewriteCond %{HTTP:Upgrade} !websocket   [nocase]

        RewriteRule ^/(.*) /___proxy_subdomain_webdisk/$1 [PT]
		ProxyPass "/___proxy_subdomain_webdisk" "http://127.0.0.1:2077" max=1 retry=0
            RewriteCond %{HTTP_HOST} =webmail.ababet.ug [OR]
            RewriteCond %{HTTP_HOST} =webmail.ababet.ug:443
        RewriteCond %{HTTP:Upgrade} !websocket   [nocase]

        RewriteRule ^/(.*) /___proxy_subdomain_webmail/$1 [PT]
		ProxyPass "/___proxy_subdomain_webmail" "http://127.0.0.1:2095" max=1 retry=0

            RewriteCond %{HTTP:Upgrade} websocket   [nocase]
                RewriteCond %{HTTP_HOST} =cpanel.ababet.ug [OR]
                RewriteCond %{HTTP_HOST} =cpanel.ababet.ug:443

            RewriteRule ^/(.*) /___proxy_subdomain_ws_cpanel/$1 [PT]
            RewriteCond %{HTTP:Upgrade} websocket   [nocase]
                RewriteCond %{HTTP_HOST} =webmail.ababet.ug [OR]
                RewriteCond %{HTTP_HOST} =webmail.ababet.ug:443

            RewriteRule ^/(.*) /___proxy_subdomain_ws_webmail/$1 [PT]
</VirtualHost>