我有一个运行两个应用程序的Apache服务器:

在WordPress(PHP)上运行的网站:http://example.com

并运行Express的Next.js应用程序:http://example.com/tools

Tools应用程序位于不同的文件夹中:/ var / www / html / tool / current

我使用Apache vhost使example.com/tools在这里运行应用程序是我的vhost:

<VirtualHost *:80>
   ServerAdmin webmaster@example.com
   DocumentRoot "/var/www/html/example/current"
   ServerName www.example
   #Alias /tools
   /var/www/html/example/current/
   #ProxyPass /tools http://www.example.com.br
</VirtualHost>

<Location /tools>
            ProxyPass http://192.40.122.211:3000/
            ProxyPassReverse http://192.40.122.211:3000/
</Location>

这导致APP的路由出现一些错误,因为应用程序的客户端部分没有加载,我收到了几个错误:

GET https://www.example.com/_next/static/css/styles.chunk.css net::ERR_ABORTED 404

GET https://www.example.com/_next/static/development/dll/dll_1e878a4e355276ad7a3e.js net::ERR_ABORTED 404

GET https://www.example.com/_next/static/chunks/styles.js net::ERR_ABORTED 404

GET https://www.example.com/_next/static/development/pages/_error.js net::ERR_ABORTED 404

有没有人知道我可以做什么?