I need help to properly configure wordpress subdirectory + nginx

May 6, 2018 560 views
Ubuntu 16.04 Nginx Ubuntu

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 ?

1 Answer

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.

Have another answer? Share your knowledge.