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

<VirtualHost 83.223.94.193:80 83.223.94.193:80 [2a01:37:3000:0:0:53df:5ec1:0]:80 [2a01:37:3000:0:0:53df:5ec1:0]:80>
    ServerName feding.de
    ServerAlias  www.feding.de
    ServerAdmin webmaster@feding.de

    SuexecUserGroup peh96 peh96

    PassengerEnabled Off
    PassengerUser peh96
    PassengerGroup peh96
    PassengerAppRoot /home/doms/feding.de/app/

    DocumentRoot /home/doms/feding.de/htdocs


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

    <Directory /home/doms/feding.de/>
        PassengerEnabled Off
        PassengerPython /usr/bin/python3
        PassengerNodejs /usr/bin/node
        PassengerRuby /usr/bin/ruby
        AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,Includes,Indexes,MultiViews,SymLinksIfOwnerMatch
    </Directory>



    <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 %{HTTP_HOST} ^(.+)\.feding.de\.?(:[0-9]+)?$ [novary]
    RewriteCond /home/doms/feding.de/subs/${tolower:%1}  -d
    RewriteRule ^(.*) /home/doms/feding.de/subs/${tolower:%1}$1  [last]

</VirtualHost>

<VirtualHost 83.223.94.193:443 83.223.94.193:443 [2a01:37:3000:0:0:53df:5ec1:0]:443 [2a01:37:3000:0:0:53df:5ec1:0]:443>
    ServerName feding.de
    ServerAlias  www.feding.de
    ServerAdmin webmaster@feding.de

    SuexecUserGroup peh96 peh96

    PassengerEnabled Off
    PassengerUser peh96
    PassengerGroup peh96
    PassengerAppRoot /home/doms/feding.de/app-ssl/

    SSLEngine On
    SSLCertificateFile /etc/apache2/pems-enabled/feding.de.crt
    SSLCertificateKeyFile /etc/apache2/pems-enabled/feding.de.key
    SSLCertificateChainFile /etc/apache2/pems-enabled/feding.de.chain

    DocumentRoot /home/doms/feding.de/htdocs-ssl


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

    <Directory /home/doms/feding.de/>
        PassengerEnabled Off
        PassengerPython /usr/bin/python3
        PassengerNodejs /usr/bin/node
        PassengerRuby /usr/bin/ruby
        AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,Includes,Indexes,MultiViews,SymLinksIfOwnerMatch
    </Directory>



    <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 %{HTTP_HOST} ^(.+)\.feding.de\.?(:[0-9]+)?$ [novary]
    RewriteCond /home/doms/feding.de/subs-ssl/${tolower:%1}  -d
    RewriteRule ^(.*) /home/doms/feding.de/subs-ssl/${tolower:%1}$1  [last]

</VirtualHost>
