    # Reverse Proxy Configuration
    ProxyRequests		Off
    ProxyPreserveHost           On

    AllowEncodedSlashes         NoDecode
    


    #-------------------------------------------------------------------------------------------------------------------
    # ETC Private
    #-------------------------------------------------------------------------------------------------------------------

    Use SupervisorProxy private/web-server-sv   ${WS_HOST_NAME}         ${WS_PORT_SV_INT}
    Use SupervisorProxy private/database-sv     ${DB_HOST_NAME}         ${DB_PORT_SV_INT}
    Use SupervisorProxy private/tools-sv        ${TOOLS_HOST_NAME}      ${TOOLS_PORT_SV_INT}
    Use SupervisorProxy private/webapp-sv       ${WA_HOST_NAME}         ${WA_PORT_SV_INT}



    RewriteRule			   "^/private/tools$"  "/private/tools/"  [R]

    <Location /private/tools/>
        ProxyPass                  http://${TOOLS_HOST_NAME}:${TOOLS_PORT_MAIN_INT}/ flushpackets=on
        ProxyPassReverse	   http://${TOOLS_HOST_NAME}:${TOOLS_PORT_MAIN_INT}/

        ProxyPassReverseCookiePath /                   /private/tools/

        RequestHeader 	           setifempty  	       X-Forwarded-Proto             expr=%{REQUEST_SCHEME}
    </Location>
        


    #-------------------------------------------------------------------------------------------------------------------
    # ETC WebApp
    #-------------------------------------------------------------------------------------------------------------------
    
    <Location ~ ^(?!/error|/css|/js|/lib|/images|/private)>
        ProxyPass		http://${WA_HOST_NAME}:${WA_PORT_MAIN_INT}/ flushpackets=on
        ProxyPassReverse	http://${WA_HOST_NAME}:${WA_PORT_MAIN_INT}/
    </Location>
