ServerRoot %%SERVER_ROOT%%
PidFile %%PID_FILE%%
ServerAdmin root@localhost

%%LOAD_MODULES%%

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
User www
Group www
</IfModule>
</IfModule>

ServerName localhost
Listen %%LISTEN%%

ErrorLog "%%LOG_FILE%%"
LogLevel debug

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Require all denied
</Directory>

AddDefaultCharset UTF-8

FcgidMaxRequestLen 1073741824
FcgidConnectTimeout 20
FcgidProcessTableFile %%tmp_dir%%/shm
FcgidIPCDir %%tmp_dir%%
FcgidInitialEnv RT_TESTING 1
FcgidInitialEnv RT_TEST_DISABLE_CONFIG_CACHE %%RT_TEST_DISABLE_CONFIG_CACHE%%
FcgidInitialEnv RT_SITE_CONFIG %%RT_SITE_CONFIG%%

ScriptAlias / %%RT_SBIN_PATH%%/rt-server.fcgi/

DocumentRoot "%%DOCUMENT_ROOT%%"
<Location />

    <RequireAll>
        Require all granted
%%BASIC_AUTH%%
    </RequireAll>

    Options +ExecCGI
    AddHandler fcgid-script .fcgi
</Location>
