I'v got a problem. Client has VPS and we transfered magento system to it.
The problem is that if for example path to magento is /var/www/magento and there is some file in it like /var/www/magento/file.js(for example) then on frontend it tries to load:
(host)/var/www/magento/file.js
but not
(host)/magento/file.js
How I can fix this?
UPDATE 1
Strange thing: CSS files are listed properly, but JS file use wrong path.