Sitefinity 8 problem when access local server over static ip
Hi,
We have a local server with sitefinity instance, local IP (exam: 192.168.1.123). We use IIS URL rewrite a static IP to this server for customer testing (exam: 10.5.5.123). This server has a local domain name too (exam: testenv.domainname.com).
Then, when we access site via static IP, we can not login to Edit mode, "realm" parameter in login url replaced by local domain name instead of static IP, all images on front end are lost (image links returned as local domain name, exam: testenv.domainname.com/.../image.png)
Can anybody help me?
Hi,
In order to access Sitefinity on an IP or domain different than the one it is hosted on you need a set of rewrite rules that modify the request both inbound and outbound. This is referred as reverse proxy and can be achieved by following the steps in the following KB article: http://www.sitefinity.com/developer-network/knowledge-base/details/host-sitefinity-under-reverse-proxy
Please note that even with every rewrite rule implemented correctly there are still several places in the application's backend where URLs will be generated incorrectly. The only 2 currently known are for preview links and embed links of images. Images will work correctly on the frontend though.
Other than that it is also important to configure authentication correctly. The first step is to modify the wsFederation element in web.config file and specify the issuer and realm correctly.
After that you need to add entries in the SecurityConfig.config file for each token issuer and relying party explicitly. Make sure they use the same keys as the default entries for localhost.
Please note that if you are using SSL you need to also add separate entries for https as well.
Regards,
Velizar Bishurov
Telerik
Thank you. I will try it.