{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/945","labels_url":"https://api.github.com/repos/magento/magento2/issues/945/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/945/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/945/events","html_url":"https://github.com/magento/magento2/issues/945","id":53931749,"number":945,"title":"Included js/css/media file issues","user":{"login":"architect0317","id":1461748,"avatar_url":"https://avatars.githubusercontent.com/u/1461748?v=3","gravatar_id":"","url":"https://api.github.com/users/architect0317","html_url":"https://github.com/architect0317","followers_url":"https://api.github.com/users/architect0317/followers","following_url":"https://api.github.com/users/architect0317/following{/other_user}","gists_url":"https://api.github.com/users/architect0317/gists{/gist_id}","starred_url":"https://api.github.com/users/architect0317/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/architect0317/subscriptions","organizations_url":"https://api.github.com/users/architect0317/orgs","repos_url":"https://api.github.com/users/architect0317/repos","events_url":"https://api.github.com/users/architect0317/events{/privacy}","received_events_url":"https://api.github.com/users/architect0317/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-09T23:57:00Z","updated_at":"2015-01-09T23:57:00Z","closed_at":null,"body":"I set up and installed the core Magento2 files and sample data. Everything went well (except for needing to increase the max_nesting_value parameter for PHP), except as it relates to the document root.\r\nInitially, I set the document root to the project root (in this case a directory \"magento2\"). When I did this and using the Luma theme, all Javascript resources in \"/static/js\" were not found (because the URL generated was \"/static/js/...\" and the files were actually at \"/pub/static/...\".\r\nFor security reasons, I don't like to have all my files available in the DocumentRoot anyway (most modern frameworks put the entry point in a sub-directory of their repository, i.e. \"web\", \"public\", etc). I noticed the index.php file that pointed executed the same bootstrap.php file.\r\nI changed my Apache configuration document root to the \"pub\" directory and tried it. All the files in the \"/static\" path showed, but now I was getting an error for \"/pub/media/styles.css\" which caused some other issues.\r\nI ended up pointing my DocumentRoot to magento2/pub/ and creating a symbolic link for magento2/pub/pub/ to magento2/pub/.\r\n\r\nI'm not sure if that is the ideal solution or if I missed something in my configuration. Long term, I would prefer \"magento2/pub\" be the location for the DocumentRoot configurations, so I'm hoping there's a configuration setting I'm missing that would take care of this without the need for creating a symbolic link."}}