我正在使用ApacheWeb服务器设置一个反向代理。它在vps上运行。react应用程序正在本地主机3000上运行。
当我访问时,以下内容在这方面起作用
http://public-ip/
应用程序正确加载:
ProxyPreserveHost On
# ecommerce front end
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
但当我访问时,以下内容并不适用于此
http://public-ip/ecommerce/app
它无法加载:
ProxyPreserveHost On
# ecommerce front end
ProxyPass /ecommerce/app/ http://127.0.0.1:3000/
ProxyPassReverse /ecommerce/app/ http://127.0.0.1:3000/
有什么想法吗?谢谢