Inbound and Outbound Rules for Apache

Follow these rules when configuring an Apache reverse proxy for the Web Task List.

Inbound Rules

SSLProxyEngine On:
ProxyPass          /Proficy/http://YourSOAWorkflow.company.com:8020/Proficy/
ProxyPassReverse   /Proficy/http://YourSOAWorkflow.company.com:8020/Proficy/
ProxyPass/proficy/http://YourSOAWorkflow.company.com:8020/Proficy/
ProxyPassReverse/proficy/http://YourSOAWorkflow.company.com:8020/Proficy/
ProxyPass/ProficySTS/https://YourSOAWorkflow.company.com:8012/ProficySTS/
ProxyPassReverse/ProficySTS/https://YourSOAWorkflow.company.com:8012/ProficySTS/
ProxyPass/SOAServer/SOAProject/https://YourSOAWorkflow.company.com:8203/SOAServer/SOAProject/
ProxyPassReverse/SOAServer/SOAProject/https://YourSOAWorkflow.company.com:8203/SOAServer/SOAProject/
ProxyPass/SOAServer/System/http://YourSOAWorkflow.company.com:8020/SOAServer/system/
ProxyPassReverse/SOAServer/System/http://YourSOAWorkflow.company.com:8020/SOAServer/system/
ProxyPass/WorkflowServer/https://YourSOAWorkflow.company.com:8203/WorkflowServer/
ProxyPass/WorkflowServer/https://YourSOAWorkflow.company.com:8203/WorkflowServer/

Outbound Rules

AddOutputFilterByType SUBSTITUTE text/xml

SUBSTITUTE          "s|<SOAServerName>.*</SOAServerName>|<SOAServerName>YourApacheServer.company.com</SOAServerName>|i"
SUBSTITUTE   "s|<StsServiceName>.*</StsServiceName>|<StsServiceName>YourApacheServer.company.com</StsServiceName>|i"
SUBSTITUTE"s|<StsSecurePort>.*</StsSecurePort>|<StsSecurePort>443</StsSecurePort>|i"
SUBSTITUTE"s|<HttpsSamlPort>.*</HttpsSamlPort>|<HttpsSamlPort>443</HttpsSamlPort>|i"
SUBSTITUTE"s|<WorkflowServerName>.*</WorkflowServerName>|<WorkflowServerName>YourApacheServer.company.com</WorkflowServerName>|i"
SUBSTITUTE"s|<WorkflowSamlPort>.*</WorkflowSamlPort>|<WorkflowSamlPort>443</WorkflowSamlPort>|i"
SUBSTITUTE"s|<HttpPort>.*</HttpPort>|<HttpPort>443</HttpPort>|i"
SUBSTITUTE"s|(.*)<a:anyURI>.*:.*?/(.*)</a:anyURI>(.*)|$1<a:anyURI>https://YourApacheServer.company.com:443/$2</a:anyURI>$3|i"