Question

I need help to properly configure wordpress subdirectory + nginx

So far I have installed wordpress on mysite.com/blog and it works until know.

But I have 2 more questions.

  1. Should I create another php-fpm pool site?

  2. What about opcache, how can I configure it for mysite.com/blog ?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You should not need to do either of these things. Creating a second site by using a different domain or subdomain would be a separate server block in Nginx and then would require the same configuration as your main site including a new server block, PHP-FPM configuration, etc.

Since you are running /blog under your main site, as far as Nginx is concerned all your site’s content is one PHP website.