LoadModule fcgid_module modules/mod_fcgid.so

DefaultInitEnv O4W_QT_PREFIX "@osgeo4w@/apps/Qt5"
DefaultInitEnv O4W_QT_BINARIES "@osgeo4w@/apps/Qt5/bin"
DefaultInitEnv O4W_QT_PLUGINS "@osgeo4w@/apps/Qt5/plugins"
DefaultInitEnv O4W_QT_LIBRARIES "@osgeo4w@/apps/Qt5/lib"
DefaultInitEnv O4W_QT_TRANSLATIONS "@osgeo4w@/apps/Qt5/translations"
DefaultInitEnv O4W_QT_HEADERS "@osgeo4w@/apps/Qt5/include"
DefaultInitEnv O4W_QT_DOC "@osgeo4w@/apps/Qt5/doc"

DefaultInitEnv PATH "@osgeo4w@\apps\qt5\bin;@osgeo4w@\bin;@osgeo4w@\apps\qgis\bin;@osgeo4w@\apps\grass\@grasspath@\bin;@osgeo4w@\apps\grass\@grasspath@\lib;@windir@\system32;@windir@;@windir@\System32\Wbem"
DefaultInitEnv QGIS_PREFIX_PATH "@osgeo4w@\apps\qgis"
DefaultInitEnv QT_PLUGIN_PATH "@osgeo4w@\apps\qgis\qtplugins;@osgeo4w@\apps\qt5\plugins"
DefaultInitEnv TEMP "@temp@"
DefaultInitEnv PYTHONHOME "@osgeo4w@\apps\Python37"
DefaultInitEnv PYTHONPATH "@osgeo4w@\apps\Python37;@osgeo4w@\apps\Python37\Scripts"

Alias /qgis/ @osgeo4w@/apps/qgis/bin/

<Directory "@osgeo4w@/apps/qgis/bin/">
    SetHandler fcgid-script
    Options ExecCGI
    # Order/Allow is for Apache 2.2
    #Order allow,deny
    #Allow from all
    # Require is for Apache 2.4
    Require all granted
</Directory>
