Hello,
I am configuring a new Fedora server to host a magento site as a noob and currently files from the root directory are getting sent to the browser. Everything else in the store is working fine however hitting site.com/mage and site.com/composer.json get the contens of those files rendered to the browser. I have double checked the .htaccess file is using the default file and apache is configured to allow all overrides. Another test shows the .htaccess rules working like RELEASE_NOTES.txt being restricted etc. I'm hoping this is a simple misconfiguration due to my noobness.
Mez
If you don't want user see composer.json file on browser, you can deny it via .htaccess with this code
<Files ./composer.json>
Order Allow,Deny
Deny from all
</Files>
You can do the same for all other files