+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Sitefinity 8 problem when access local server over static ip

Sitefinity 8 problem when access local server over static ip

3 posts, 0 answered
  1. Duc
    Duc avatar
    3 posts
    Registered:
    10 May 2016
    19 May
    Link to this post

    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: http://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: http://testenv.domainname.com/images/default-library/image.png)

    Can anybody help me?

  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    23 Sep 2016
    24 May
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Duc
    Duc avatar
    3 posts
    Registered:
    10 May 2016
    26 May in reply to Velizar Bishurov
    Link to this post
    Thank you. I will try it.
3 posts, 0 answered