Dockerized wordpress does not work due to request error (404)

  docker, docker-compose, nginx, php, wordpress

Just deployed a simple WordPress site (https://aidin.ca/) using this method, as I successfully did before for other domains.

Though, this time it appears that it cannot load some .css and .js files, making the whole website partially loaded and plugins and themes unfunctional.

For production environment and docker-compose.yml and nginx configurations, please refer to the above link.

Even debug mode didn’t show any error whatsoever. From inspecting console, it shows the followings:

Refused to apply style from ‘https://DOMAIN/wp-content/plugins/updraftplus/css/tether-shepherd/shepherd-theme-arrows-plain-buttons.min.css?ver=1.16.56’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

GET https://DOMAIN/wp-content/plugins/updraftplus/includes/tether-shepherd/shepherd.min.js?ver=1.16.56 net::ERR_ABORTED 404

Will appreciate your help.

Source: Docker Questions

LEAVE A COMMENT