Skip to content

404 for pub/static files

After installing Magento 2.3 on the server, when I run the URL I am receiving 404 for pub/static.

I have given proper permission to magento folders. Also set ownership to apache for the codebase.

Now, while looking into pub/static folder, I found the user & group is set to root instead of apache. Is this causing issue to load the static content in Magento? If so, how can I set the ownership of newly created folders?

Please advise.