Monday, January 24, 2011

How to make application server pickup content from WebServer

Web server Plug-in is smart to route, if a request is to be sent to Application Server or Web Server.

In order for web server to serve the static content for the stores module,
the conf folder of the web server has the configuration file e.g. httpd.conf or httpd-live.conf
All the relevant virtual hosts need to be updated with an alias e.g. /www/public/static can be any path on the web server file system.

Alias /wcsstore "/www/public/static"

Best practice for static content path:
These paths would get resolved to the following physical locations.

It is a good practice to have a folder hierarchy properties such as store name, locale and would greatly help when there are multiple stores and/or languages.

No comments:

Post a Comment