I am using Capistrano to deploy Magento code to a webserver that is running nginx. Nginx web root for
/var/www/html, which on the filesystem is a symlink to
/opt/magento-codebase/current (which in itself is a symlink to
/opt/magento-codebase/releases/TIMESTAMP). See http://capistranorb.com/documentation/getting-started/structure for more details on how Cap. sets up its directories.
Everything loads right, except for assets described in Magento's layout XML files. When generating the URLs via the
Mage_Page_Block_Html_Head::addItem() method it ends up including the full path to the file in the URL. For example,
<action method="addItem"><type>skin_css</type><name>css/tools.css</name></action> results in:
Is there an nginx or Magento configuration I can use to tell it not to include the resolved directory? I'm testing this locally and we are not combining JS assets or CSS assets into the hashed file stored in
Update: I checked and when
dev/js/merge_files is set to
dev/css/merge_css_files is set to
core_config_data, it doesn't work. WhenI set them to
0, it loads correctly...