我们在Ubuntu上运行nginx + php-fpm7上的Wordpress网站。我们在使用Unbounce插件时遇到问题,他们的支持也无济于事。该插件有一个弹出窗口,它动态创建一个页面(.html),它在弹出窗口内加载。由于此文件在物理上不存在,因此nginx返回404(参见屏幕截图)。如何配置nginx将此请求进一步传递给php-fpm?
location /
{
try_files $uri $uri/ /index.php?$args;
}
我的完整nginx配置是here。有没有人知道如何实现这个目标?