Question

I need help to properly configure wordpress subdirectory + nginx

Posted May 6, 2018 654 views
Nginx Ubuntu Ubuntu 16.04

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 ?

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.

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.

Submit an Answer