如果我点击 - http://10.157.128.170/oneapp应用程序应加载index.html apache content
和所有 api呼叫,例如http://10.157.128.170:25003/oneapp/*(其中 *可以是任何API调用)应重定向到端口上的JBOSS:25003/oneapp p>此要求的Apache配置是什么?
我当前的配置是:
ProxyPassMatch ^/oneapp/$ !
ProxyPass /oneapp/index.html !
ProxyPass /oneapp http://10.157.128.170:25003/oneapp
ProxyPassReverse /oneapp http://10.157.128.170:25003/oneapp
我需要点击的地方:http://10.157.128.170/index.html,用于index.html,但我需要是http://10.157.128.170/oneaepe
文件我在Apache Content Directory上
index.html
app.css
app.js
images
只需添加一个拖延即可解决问题
ProxyPassMatch ^/oneapp/$ !
ProxyPass /oneapp/index.html !
ProxyPass /oneapp/ http://10.157.128.170:25003/oneapp/
ProxyPassReverse /oneapp/ http://10.157.128.170:25003/oneapp/
还确保启用了mod_proxy和mod_proxy_http。