Here are the steps for installing IBM HTTP Server and configuring with WebSphere Commerce,
<VirtualHost *:443>
<VirtualHost *:8006>
Here is the snippet,
<VirtualHost *:80>
ServerName *
Alias /wcsstore "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent"
Alias /wcs "W:\IBM\WCDE_ENT70\workspace\CommerceAccelarator\WebContent"
Alias /css "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\css"
Alias /js "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\js"
Alias /icons "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\icons"
Alias /images "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\images"
Alias /contentspots "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\contentspots"
# Example: Turn on the rewrite engine.
RewriteEngine On
</VirtualHost>
<VirtualHost *:443>
SSLEnable
SSLClientAuth 0
ServerName *
Alias /wcsstore "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent"
Alias /wcs "W:\IBM\WCDE_ENT70\workspace\CommerceAccelarator\WebContent"
Alias /css "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\css"
Alias /js "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\js"
Alias /icons "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\icons"
Alias /images "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\images"
Alias /contentspots "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\contentspots"
</VirtualHost>
<VirtualHost *:8006>
SSLEnable
SSLClientAuth 0
ServerName *
Alias /wcsstore "W:\IBM\WCDE_ENT70\workspace\Stores\WebContent"
Alias /wcs "W:\IBM\WCDE_ENT70\workspace\Stores\WebContent"
</VirtualHost>
- Move all your static content (Like Images/CSS/JS etc) from Stores project and move it to a StaticWeb Project so that, it will easy to maintain the static assets separately rather than in Stores Project. Later, you can easily move these static contents from this project to your Web Server.
- Install IBM HTTP Server with the steps mentioned in following document,
- Update the following tags in C:\WebSphere\IHS\conf\httpd.conf to point out to StaticWeb Project,
<VirtualHost *:443>
<VirtualHost *:8006>
Here is the snippet,
<VirtualHost *:80>
ServerName *
Alias /wcsstore "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent"
Alias /wcs "W:\IBM\WCDE_ENT70\workspace\CommerceAccelarator\WebContent"
Alias /css "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\css"
Alias /js "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\js"
Alias /icons "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\icons"
Alias /images "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\images"
Alias /contentspots "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\contentspots"
# Example: Turn on the rewrite engine.
RewriteEngine On
</VirtualHost>
<VirtualHost *:443>
SSLEnable
SSLClientAuth 0
ServerName *
Alias /wcsstore "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent"
Alias /wcs "W:\IBM\WCDE_ENT70\workspace\CommerceAccelarator\WebContent"
Alias /css "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\css"
Alias /js "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\js"
Alias /icons "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\icons"
Alias /images "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\images"
Alias /contentspots "W:\IBM\WCDE_ENT70\workspace\StaticWeb\WebContent\contentspots"
</VirtualHost>
<VirtualHost *:8006>
SSLEnable
SSLClientAuth 0
ServerName *
Alias /wcsstore "W:\IBM\WCDE_ENT70\workspace\Stores\WebContent"
Alias /wcs "W:\IBM\WCDE_ENT70\workspace\Stores\WebContent"
</VirtualHost>
- Make sure that no other application is using Port 80. You might face the following issue and here is the resolution for the same,
- Restart the HTTP Server
- After doing these changes, the static content will be served from HTTP Server rather than WebSphere Application Server
No comments:
Post a Comment