#
# This file is managed by HSAdmin.
# Do not edit manually. Changes will be overwritten.
#

<VirtualHost 83.223.94.77:80 83.223.94.77:80 [2a01:37:3000:0:0:53df:5e4d:0]:80 [2a01:37:3000:0:0:53df:5e4d:0]:80>
    ServerName h96.mon.hostsharing.net
    ServerAlias  *.h96.mon.hostsharing.net
    ServerAdmin webmaster@h96.mon.hostsharing.net

    SuexecUserGroup xyz96-doms xyz96

    PassengerEnabled Off
    PassengerUser xyz96-doms
    PassengerGroup xyz96
    PassengerAppRoot /home/doms/h96.mon.hostsharing.net/app/

    DocumentRoot /home/doms/h96.mon.hostsharing.net/htdocs

    Alias /cgi-bin/ /home/doms/h96.mon.hostsharing.net/cgi/
    Alias /fastcgi-bin/ /home/doms/h96.mon.hostsharing.net/fastcgi/

    <Directory />
        PassengerEnabled Off
        Options -ExecCGI +IncludesNoExec +Indexes +MultiViews +SymLinksIfOwnerMatch
    </Directory>

    <Directory /home/doms/h96.mon.hostsharing.net/>
        PassengerEnabled On
        AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,Includes,Indexes,MultiViews,SymLinksIfOwnerMatch
    </Directory>

    <Location /cgi-bin/>
        PassengerEnabled Off
        SetHandler cgi-script
        Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
    </Location>

    <Location /fastcgi-bin/>
        PassengerEnabled Off
        SetHandler fcgid-script
        Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
    </Location>

    <Location /autodiscover/autodiscover.xml>
        ProxyPreserveHost Off
        ProxyPass http://127.0.0.1:8082/
    </Location>

    <Location /.well-known/autoconfig/mail/config-v1.1.xml>
        ProxyPreserveHost Off
        ProxyPass http://127.0.0.1:8081/
    </Location>

    RewriteEngine On
    RewriteOptions Inherit

    RewriteCond %{REQUEST_URI} !^/cgi-bin/
    RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
    RewriteCond %{HTTP_HOST} ^(.+)\.h96.mon.hostsharing.net\.?(:[0-9]+)?$ [novary]
    RewriteCond /home/doms/h96.mon.hostsharing.net/subs/${tolower:%1}  -d
    RewriteRule ^(.*) /home/doms/h96.mon.hostsharing.net/subs/${tolower:%1}$1  [last]

    AddType application/x-httpd-php .php .php5 .php4 .php3
    Action application/x-httpd-php /fastcgi-bin/phpstub
</VirtualHost>

<VirtualHost 83.223.94.77:443 83.223.94.77:443 [2a01:37:3000:0:0:53df:5e4d:0]:443 [2a01:37:3000:0:0:53df:5e4d:0]:443>
    ServerName h96.mon.hostsharing.net
    ServerAlias  *.h96.mon.hostsharing.net
    ServerAdmin webmaster@h96.mon.hostsharing.net

    SuexecUserGroup xyz96-doms xyz96

    PassengerEnabled Off
    PassengerUser xyz96-doms
    PassengerGroup xyz96
    PassengerAppRoot /home/doms/h96.mon.hostsharing.net/app-ssl/

    SSLEngine On
    SSLCertificateFile /etc/apache2/pems-enabled/h96.mon.hostsharing.net.crt
    SSLCertificateKeyFile /etc/apache2/pems-enabled/h96.mon.hostsharing.net.key
    SSLCertificateChainFile /etc/apache2/pems-enabled/h96.mon.hostsharing.net.chain

    DocumentRoot /home/doms/h96.mon.hostsharing.net/htdocs-ssl

    Alias /cgi-bin/ /home/doms/h96.mon.hostsharing.net/cgi-ssl/
    Alias /fastcgi-bin/ /home/doms/h96.mon.hostsharing.net/fastcgi-ssl/

    <Directory />
        SSLRequireSSL On
        PassengerEnabled Off
        Options -ExecCGI +IncludesNoExec +Indexes +MultiViews +SymLinksIfOwnerMatch
    </Directory>

    <Directory /home/doms/h96.mon.hostsharing.net/>
        PassengerEnabled On
        AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,Includes,Indexes,MultiViews,SymLinksIfOwnerMatch
    </Directory>

    <Location /cgi-bin/>
        PassengerEnabled Off
        SetHandler cgi-script
        Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
    </Location>

    <Location /fastcgi-bin/>
        PassengerEnabled Off
        SetHandler fcgid-script
        Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
    </Location>

    <Location /autodiscover/autodiscover.xml>
        ProxyPreserveHost Off
        ProxyPass http://127.0.0.1:8082/
    </Location>

    <Location /.well-known/autoconfig/mail/config-v1.1.xml>
        ProxyPreserveHost Off
        ProxyPass http://127.0.0.1:8081/
    </Location>

    RewriteEngine On
    RewriteOptions Inherit

    RewriteCond %{REQUEST_URI} !^/cgi-bin/
    RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
    RewriteCond %{HTTP_HOST} ^(.+)\.h96.mon.hostsharing.net\.?(:[0-9]+)?$ [novary]
    RewriteCond /home/doms/h96.mon.hostsharing.net/subs-ssl/${tolower:%1}  -d
    RewriteRule ^(.*) /home/doms/h96.mon.hostsharing.net/subs-ssl/${tolower:%1}$1  [last]

    AddType application/x-httpd-php .php .php5 .php4 .php3
    Action application/x-httpd-php /fastcgi-bin/phpstub

</VirtualHost>
