There are 2 containers with sites: on nuxt.js on wordpress They work in the same environment, that is, they are visible to each other. It is necessary in the 3rd container with Nginx to display the wordpress page as location / content when passing from nuxt.js. That is, site.com works under node + nuxt, and when you go to the site.com/content link, we go to the wordpress page with posts. You also need the site.com/wp-admin link to work as a regular wordpress route and open a full-fledged wordpress admin panel. But wordpress itself can work on any other subdomain example.site.com, if there are difficulties with the wp-admin output. How to implement this using nginx + wordpress or suggest other options?

  • See the working example of nginx configuration here. – Ivan Shatsky Nov 27 '20 at 10:29
  • hm... maybe you didn't read my question They are in different docker containers and not in one system. – Terry Filch Nov 27 '20 at 11:04
  • I'm not sure that this is (easily) possible. Especially the requirements that specific folders should go to specific containers. Anyways, this question is not really fit for this Q&A, I think at ServerFault or another site you'll get better answers. Maybe it is even simpler to just fetch the WP pages from your JS application and display them, WP living on a custom subdomain – kero Nov 27 '20 at 13:19
  • @kero I think it will be better to add functionality like blog on nuxt app, but not to wasting time to resolve this task... But it will be the next step. :D – Terry Filch Nov 28 '20 at 14:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.