{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/3152","labels_url":"https://api.github.com/repos/meteor/meteor/issues/3152/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/3152/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/3152/events","html_url":"https://github.com/meteor/meteor/issues/3152","id":49756054,"number":3152,"title":"Assets referenced by url() in CSS do not load when ROOT_URL is set.","user":{"login":"arigesher","id":843275,"avatar_url":"https://avatars.githubusercontent.com/u/843275?v=3","gravatar_id":"","url":"https://api.github.com/users/arigesher","html_url":"https://github.com/arigesher","followers_url":"https://api.github.com/users/arigesher/followers","following_url":"https://api.github.com/users/arigesher/following{/other_user}","gists_url":"https://api.github.com/users/arigesher/gists{/gist_id}","starred_url":"https://api.github.com/users/arigesher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arigesher/subscriptions","organizations_url":"https://api.github.com/users/arigesher/orgs","repos_url":"https://api.github.com/users/arigesher/repos","events_url":"https://api.github.com/users/arigesher/events{/privacy}","received_events_url":"https://api.github.com/users/arigesher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Webapp","name":"Project:Webapp","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-21T22:27:14Z","updated_at":"2015-01-26T23:39:42Z","closed_at":null,"body":"This seems somewhat similar to https://github.com/meteor/meteor/issues/2106 but perhaps a bit different.\r\n\r\nI have a number of font and svg files referenced in some less stylesheets that look like this:\r\n\r\n```\r\n@font-face {\r\n  font-family: 'DinNextLT-400-normal';\r\n  src: url('../../resources/pt.bootstrap.theme/fonts/DINNextLTW04-Regular.eot');\r\n  src: local('☺'),\r\n       url('../../resources/pt.bootstrap.theme/fonts/DINNextLTW04-Regular.eot?#iefix') format('embedded-opentype'),\r\n       url('../../resources/pt.bootstrap.theme/fonts/DINNextLTW04-Regular.woff') format('woff'),\r\n       url('../../resources/pt.bootstrap.theme/fonts/DINNextLTW04-Regular.ttf') format('truetype');\r\n  font-weight: normal;\r\n  font-style: normal;\r\n}\r\n```\r\n\r\nThese live in `client/less/blueprint/fonts.less`. \r\n\r\nWhen I deploy the app to my server, I'm running it behind nginx, mounted on a path on a larger server - so the app lives at `http://server/app/p/` and I run meteor with `ROOT_URL=http://server/app/p/`.\r\n\r\nRunning in development, without nginx, everything works fine.\r\n\r\nBehind nginx, the fonts don't load and I see these messages in the javascript console on the client:\r\n\r\n> GET http://server/resources/pt.bootstrap.theme/fonts/DINNextLTW04-Regular.ttf  404 (not found)\r\n\r\nNote that the resource should be at http://server/**app/p**/resources/pt.bootstrap.theme/fonts/DINNextLTW04-Regular.ttf\r\n\r\nThe rewrites look consistent (not including ROOT_URL) with other assets when I inspect program.json.  "},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/71562203","html_url":"https://github.com/meteor/meteor/issues/3152#issuecomment-71562203","issue_url":"https://api.github.com/repos/meteor/meteor/issues/3152","id":71562203,"user":{"login":"glasser","id":16724,"avatar_url":"https://avatars.githubusercontent.com/u/16724?v=3","gravatar_id":"","url":"https://api.github.com/users/glasser","html_url":"https://github.com/glasser","followers_url":"https://api.github.com/users/glasser/followers","following_url":"https://api.github.com/users/glasser/following{/other_user}","gists_url":"https://api.github.com/users/glasser/gists{/gist_id}","starred_url":"https://api.github.com/users/glasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glasser/subscriptions","organizations_url":"https://api.github.com/users/glasser/orgs","repos_url":"https://api.github.com/users/glasser/repos","events_url":"https://api.github.com/users/glasser/events{/privacy}","received_events_url":"https://api.github.com/users/glasser/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T23:39:42Z","updated_at":"2015-01-26T23:39:42Z","body":"We fixed some things related to CSS and `$ROOT_URL` in 1.0.3.1 (see eg #3111).  I'm not sure if this fixes your issue or not because your issue doesn't have a clear reproduction recipe that makes it trivial for me to reproduce your setup and see if the issue still exists.  See  https://github.com/meteor/meteor/wiki/Contributing-to-Meteor#reporting-a-bug-in-meteor for advice.  But maybe 1.0.3.1 did fix your issue?"}}