Set Web server aliases to display images from Web Content Management


If the WebSphere Commerce content you created using Web Content Management uses images, set a Web server alias for the images to be displayed correctly.

You must create an alias that maps the URL wps/wcm/myconnect to the folder on the WebSphere Commerce machine that contains the prerendered contents copied from IBM Workplace Web Content Management.

You must create this alias on the Web server for your WebSphere Commerce authoring server and the Web server for your WebSphere Commerce production server.

For instructions on creating an alias, refer to your Web server's documentation.

To set the required alias for IBM HTTP server:

  1. Locate the IBM HTTP Server httpd.conf file under the WC_installDir/instances/instance directory.

  2. Open the httpd.conf file and add the following bolded lines under lines 80 and 443 respectively of the virtual host section:
    <VirtualHost content.in.ibm.com:80>
    ServerName content.in.ibm.com.
    ...
    ...
    Alias   /wps/wcm/myconnect      "<Directory path to the
    folder where pre-rendered contents would be stored>"</VirtualHost>
    
    <VirtualHost content.in.ibm.com:443>
    SSLEnable
    SSLClientAuth 0
    ServerName content.in.ibm.com.
    ...
    ...
    Alias   /wps/wcm/myconnect      "<Directory path to the
    folder where pre-rendered contents would be stored>"
    </VirtualHost>

    The specified path must lead to the directory where the pre-rendered contents are stored. For example: C:\\IBM\\WebSphere\\AppServer\\profiles\\demo1\\installedApps\\prerenderedcontents

  3. Save and close the file.

  4. Restart the HTTP server.

To set the required alias for Microsoft IIS:

  1. Open the addIWWCMAliases.js file from IBM Workplace Web Content Management integration for WebSphere Commerce package in a text editor.

  2. Locate the following text:

    aliasPaths[0] = "D:\\WebSphere\\AppServer\\profiles\\demo3\\installedApps\\prerenderedcontents";

  3. Find the shared location (on the WebSphere Commerce machine) where the resources were written from Web Content Management to the WebSphere Commerce machine. See step 5 in
    Install IBM Workplace Web Content Management integration for WebSphere Commerce on the Web Content Management system for more information.

  4. Update the value of aliaspath[0] with the complete path to the location where the prerendered contents from Web Content Management were written.

  5. Save your changes.

  6. Start a command prompt session and change directories to the location of addIWWCMAliases.js.

  7. Issue the following command:

    cscript.exe addIWWCMAliases.js

  8. Restart IIS.


 

Related Concepts

IBM Workplace Web Content Management integration for WebSphere Commerce

 

Related tasks

Overview: Integrating WebSphere Commerce and IBM Workplace Web Content Management

Install IBM Workplace Web Content Management integration for WebSphere Commerce on the WebSphere Commerce system

Configure WebSphere Commerce integration with Web Content Management

Moving Web Content Management content to WebSphere Commerce