I need help to properly configure wordpress subdirectory + nginx

Posted May 6, 2018 1.1k views
NginxUbuntuUbuntu 16.04

So far I have installed wordpress on 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 ?

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.

Submit an Answer
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.