【发布时间】:2013-12-10 17:39:02
【问题描述】:
如您所见,我试图让 / 和 /BowlingFacelets/faces/ 都指向同一个地方。
问题是 JSF 页面会在我汇总表单时添加 /BowlingFacelets/faces/。但是,我不希望最终用户必须输入这么长的语句来启动应用程序。有没有办法做到这一点?
请注意,如果我手动添加,这将起作用
score.megahooked.com/BowlingFacelets/faces to the URL
ProxyPass / http://megahooked.com:8080/
ProxyPassReverse / http://megahooked.com:8080/
这将无法正常工作
score.megahooked.com/createEvent.xhtml
自从提交新网址后, score.megahooked.com/BowlingFacelets/faces/updateEvent.xhtml 未找到。
<VirtualHost *:80>
ServerName score.megahooked.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://megahooked.com:8080/BowlingFacelets/faces/
ProxyPassReverse / http://megahooked.com:8080/BowlingFacelets/faces/
ProxyPass /BowlingFacelets/faces/ http://megahooked.com:8080/BowlingFacelets/faces/
ProxyPassReverse /BowlingFacelets/faces/ http://megahooked.com:8080/BowlingFacelets/faces/
</VirtualHost>
【问题讨论】: