{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/14933","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/14933/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/14933/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/14933/events","html_url":"https://github.com/magento/magento2/issues/14933","id":319506275,"number":14933,"title":"Changing Apache docroot to pub breaks site","user":{"login":"digitalbricklayer","id":898095,"avatar_url":"https://avatars1.githubusercontent.com/u/898095?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalbricklayer","html_url":"https://github.com/digitalbricklayer","followers_url":"https://api.github.com/users/digitalbricklayer/followers","following_url":"https://api.github.com/users/digitalbricklayer/following{/other_user}","gists_url":"https://api.github.com/users/digitalbricklayer/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbricklayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbricklayer/subscriptions","organizations_url":"https://api.github.com/users/digitalbricklayer/orgs","repos_url":"https://api.github.com/users/digitalbricklayer/repos","events_url":"https://api.github.com/users/digitalbricklayer/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbricklayer/received_events","type":"User","site_admin":false},"labels":[{"id":688811200,"url":"https://api.github.com/repos/magento/magento2/labels/G1%20Passed","name":"G1 Passed","color":"0e8a16","default":false},{"id":161563561,"url":"https://api.github.com/repos/magento/magento2/labels/needs%20update","name":"needs update","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-02T10:59:05Z","updated_at":"2018-05-03T10:53:24Z","closed_at":null,"author_association":"NONE","body":"When I change the docroot in apache the site loses all CSS and all images.\r\n\r\nI have followed the instructions in devdocs [here](https://devdocs.magento.com/guides/v2.1/install-gde/tutorials/change-docroot-to-pub.html) and the instructions break my site. I suspect that the cause of the problem is buried deep in my Apache configuration somewhere. The problem is that devdocs is very vague about how to configure Apache in marked contrast to the nginx configuration that is spelled out in some detail.\r\n\r\n### Preconditions\r\n1. Centos 7.3\r\n2. Apache 2.4.6\r\n3. PHP 7.0.29\r\n4. MariaDB 15.1\r\n5. Magento 2.1.12\r\n6. composer 1.3.1\r\n\r\n### Steps to reproduce\r\nInstructions as per [here](https://devdocs.magento.com/guides/v2.1/install-gde/tutorials/change-docroot-to-pub.html).\r\n1. Change the docroot in the Apache configuration for the Magento 2 site\r\n2. Restart Apache\r\n3. Check database base_url. It is set up correctly as per the document.\r\n4. Check the store frontend.\r\n\r\n### Expected result\r\n1. When checking the store frontend, it should display as normal.\r\n\r\n### Actual result\r\n1. The website is displayed without CSS or images. Inspecting the page (in Chrome) shows many 404 image errors and the CSS shows errors like: \"Failed to load resource: the server responded with a status of 404 (Not Found)\" and \"Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.\"\r\n\r\n![site-without-css](https://user-images.githubusercontent.com/898095/39519699-c2f62134-4dff-11e8-80de-47641a7b4767.png)\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/386257361","html_url":"https://github.com/magento/magento2/issues/14933#issuecomment-386257361","issue_url":"https://api.github.com/repos/magento/magento2/issues/14933","id":386257361,"user":{"login":"digitalbricklayer","id":898095,"avatar_url":"https://avatars1.githubusercontent.com/u/898095?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalbricklayer","html_url":"https://github.com/digitalbricklayer","followers_url":"https://api.github.com/users/digitalbricklayer/followers","following_url":"https://api.github.com/users/digitalbricklayer/following{/other_user}","gists_url":"https://api.github.com/users/digitalbricklayer/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbricklayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbricklayer/subscriptions","organizations_url":"https://api.github.com/users/digitalbricklayer/orgs","repos_url":"https://api.github.com/users/digitalbricklayer/repos","events_url":"https://api.github.com/users/digitalbricklayer/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbricklayer/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T10:53:24Z","updated_at":"2018-05-03T10:53:24Z","author_association":"NONE","body":"Oh, yes please :)"}}
{"actor":{"display_login":"digitalbricklayer"}}