Configuring the website context to preview assets

The asset viewer uses the Context URL property to preview assets in their intended context. This context might be an HTML rendering or a PDF rendering. You can also configure WorldServer to render your webpage files in their website context by mapping the asset to the location from which the web server renders them.

About this task

This procedure applies to websites or applications that are composed of static pages.

Procedure

  1. Identify the web server and the port that will be used to display the localized content.
    For example, server test.mycompany.com on port 80.
  2. Do one of the following:
    • Map the web server's document root.
    • Create a virtual directory with a document root that contains all the files that you want to preview.
    For example, map the http://test.mycompany.com/preview URL to the C:\content directory.
  3. In WorldServer, go to Management > Asset Interface System > View and Change Properties and set the Context URL property for the appropriate folder.
    For example, if C:\content is mounted as /content in WorldServer, set the Context URL property of /content to http://test.mycompany.com/preview.

Results

Now, when users view files in the viewer, these files are render by the web server as they would be rendered on the production website. In this case, WorldServer simply redirects to the web server, without processing the files.