Magento – File does not exist:/var/www/skin, /var/www/js, /var/www/media

errorfile uploadstore-view

I installed Debian in our local network and copy Magento to test.
After, I update the table mage_core_config_data in the database.

When I test this link dev-pmc/dev1.pmc.loc, I got this error in the log of apache

[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/js, referer: http://dev-pmc/dev1.pmc.loc/
[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxxxx
[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxx
[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxxx
[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxx
[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxx
[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxxx
[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxxxx
[Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: http://dev-pmc/dev1.pmc.loc/skin/frontend/seasons/home/css/styles.css

When I copy the folder skin, js and media in /www/, there are no error.

And I get this error too when I try to go to a store view
The requested URL dev1.pmc.loc/frw was not found on this server.
and in the server: File does not exist: /var/www/dev1.pmc.loc/frw

What can I do to resolve this problem?

Best Answer

Ok so we're all missing the obvious. Document root is/var/www and you're trying to run a Magento in a subdirectory. Base URLs should be adjusted and when using Apache, RewriteBase should be adjusted in .htaccess.

But since these are fake domains under your control, why not just use mod vhost alias or similar solutions? Less headaches.