Web server Plug-in is smart to route, if a request is to be sent to Application Server or Web Server.
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:
e.g.
www.mycommercestore.com/wcsstore/MyStorefrontAssetStore/img/en_US/718x407/remote.gif
www.mycommercestore.com/wcsstore/SecondStorefrontAssetStore/img/en_ES/718x407/remote.gif
These paths would get resolved to the following physical locations.
/www/public/static/MyStorefrontAssetStore/img/en_US/718x407/remote.gif
/www/public/static/SecondStorefrontAssetStore/img/en_ES/718x407/remote.gif
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