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:
- Locate the IBM HTTP Server httpd.conf file under the WC_installDir/instances/instance directory.
- 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
- Save and close the file.
- Restart the HTTP server.
To set the required alias for Microsoft IIS:
- Open the addIWWCMAliases.js file from IBM Workplace Web Content Management integration for WebSphere Commerce package in a text editor.
- Locate the following text:
aliasPaths[0] = "D:\\WebSphere\\AppServer\\profiles\\demo3\\installedApps\\prerenderedcontents";
- 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.- Update the value of aliaspath[0] with the complete path to the location where the prerendered contents from Web Content Management were written.
- Save your changes.
- Start a command prompt session and change directories to the location of addIWWCMAliases.js.
- Issue the following command:
cscript.exe addIWWCMAliases.js
- 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
Configure WebSphere Commerce integration with Web Content Management