Current File : //etc/apache2/keyhelp/autoconfig.conf
#
# KeyHelp webserver config file for Apache 2.4-fcgid
#

<VirtualHost *:80>
    ServerName autoconfig
    ServerAlias autoconfig.* autodiscover.* autoconfig-apple.*
    ServerAdmin hosting@kundensystem.cc
    SuexecUserGroup "keyhelp" "keyhelp"

    UseCanonicalName Off

    DocumentRoot /home/keyhelp/www/keyhelp/misc/emailconfig

    LogLevel warn
    CustomLog "${APACHE_LOG_DIR}/keyhelp/autoconfig.access.log" combined
    ErrorLog "${APACHE_LOG_DIR}/keyhelp/autoconfig.error.log"

    <FilesMatch \.php$>
        <If "-f %{REQUEST_FILENAME}">
            SetHandler "proxy:unix:/run/php/keyhelp_keyhelp.socket|fcgi://keyhelp_keyhelp.socket"
        </If>
    </FilesMatch>

    # Set some proxy properties (the string "unique-domain-name-string" should match
    # the one set in the FilesMatch directive.
    <Proxy fcgi://keyhelp_keyhelp.socket>
        ProxySet connectiontimeout=5 timeout=120
    </Proxy>

    # If the php file doesn't exist, disable the proxy handler.
    # This will allow .htaccess rewrite rules to work and
    # the client will see the default 404 page of Apache
    RewriteCond %{REQUEST_FILENAME} \.php$
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
    RewriteRule (.*) - [H=text/html]

    <Directory "/home/keyhelp/www/keyhelp/misc/emailconfig">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>