Hi
We have an issue with an onsite installation of SuperOffice 10.1.6. It is the same installation as in https://community.superoffice.com/de/technical/forums/product-forums/crm-web-application/trigger-issue/
Whenever we try to logout or download web tools or reconnect web tools then the application invokes an internal URL (e.g. http://172.18.98.20:2525/SuperOffice/Security/Logout.aspx) instead of the correct, external URL (e.g. https://crm-test.schaerer-surfactants.com/SuperOffice/Security/Logout.aspx).
There is a reverse proxy in IIS that rewrites https://crm-test.schaerer-surfactants.com to http://172.18.98.20:2525 and vice versa.
Configuration of the reverse proxy:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://172.18.98.20:2525/{R:1}" />
<conditions>
<add input="{CACHE_URL}" pattern="https://crm-test.schaerer-surfactants.com(.*)" />
</conditions>
</rule>
</rules>
<outboundRules>
<rule name="Rewrite location" enabled="true" stopProcessing="false">
<match serverVariable="RESPONSE_LOCATION" pattern="http://172.18.98.20:2525(.*)" />
<action type="Rewrite" value="https://crm-test.schaerer-surfactants.com{R:1}" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
</configuration>
Any ideas?
Apart from the three issues above, everything else just runs fine.
Best regards
Marc
All Replies (6)
Hi,
You can configure an url override so that SuperOffice web uses the external url when creating the url for logout and mobile crm, see documentation
UrlHostOverride, UrlPortOverride, UrlSchemeOverride
Hi David,
thanks for the hint. Now I got the SoConfig and Logout working.
Download web tools, however, still fail.
When I inspect the page I see the download button invokes document.location='/SuperOffice/clientapi/WebToolsWizard/DownloadWebTools';
The resulting URL is https://crm-test.schaerer-surfactants.com/DownloadService/download/?component=webtools&ostype=windows&serverVersion=10.1.6.838&installedVersion=12.7.12.0&user=support%40schaerer-surfactants.com&mailClient=outlook&appRoot=https%3a%2f%2fcrm-test.schaerer-surfactants.com%3a443%2fSuperOffice%2f&company=Dummy which is invalid (404 not found)
Any ideas here?
Best regards, Marc
Not sure, Try setting the 'WWW3Url' element to 'https://www3-superoffice-com.azurewebsites.net/' ?
Hi David,
I tried, but it does not change resulting URL https://crm-test.schaerer-surfactants.com/DownloadService/download/?component=webtools&ostype=windows&serverVersion=10.1.6.838&installedVersion=&user=support%40schaerer-surfactants.com&mailClient=outlook&appRoot=https%3a%2f%2fcrm-test.schaerer-surfactants.com%3a443%2fSuperOffice%2f&company=Dummy
However, if I replace the first part of the URL by 'https://www3-superoffice-com.azurewebsites.net' then the URL works.
Best regards, Marc
Hi,
Then I think that is something that needs to be changed by SuperOffice R&D to work correctly. Maybe as workaround you could create a rule in the reverse proxy to rewrite https://crm-test.schaerer-surfactants.com/DownloadService to https://www3-superoffice-com.azurewebsites.net/DownloadService ?
Hi David,
now I got the download working, by rewriting https://crm-test.schaerer-surfactants.com/DownloadService(.*) to https://www3-superoffice-com.azurewebsites.net/DownloadService{R:1} in a new rule of the reverse proxy.
Thanks for all your help!
Best regards, Marc