需要在Apache配置文件中添加以下内容:
ProxyPass /my-react-app http://localhost:3000/my-react-app
ProxyPassReverse /my-react-app http://localhost:3000/my-react-app
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/my-react-app/static/
RewriteRule ^/my-react-app/(.*)$ http://localhost:3000/my-react-app/$1 [P,L]
将上述代码中的/my-react-app替换为实际的应用名称。然后重新启动Apache服务器。此时,在代理React应用的URL中加上/my-react-app就可以访问了。