Struts2-玻璃鱼3+;Apache2重写规则

Struts2-玻璃鱼3+;Apache2重写规则,struts2,apache2,rewrite,glassfish-3,Struts2,Apache2,Rewrite,Glassfish 3,我在glassfish中部署了一个struts2 web应用程序。我通过http://localhost:8080/myapp。我已经配置了apache,以便通过http://mydomain.com 除了重定向操作导致struts之外,一切都正常。它在url中再次追加上下文名称,因此url看起来像http://mydomain.com/myapp/myaction。我如何防止这种情况发生?问题出在您的apache config.RewriteRule^/(.*)[p]有人能提供帮助吗??

我在glassfish中部署了一个struts2 web应用程序。我通过
http://localhost:8080/myapp
。我已经配置了apache,以便通过
http://mydomain.com


除了重定向操作导致struts之外,一切都正常。它在url中再次追加上下文名称,因此url看起来像
http://mydomain.com/myapp/myaction
。我如何防止这种情况发生?

问题出在您的apache config.RewriteRule^/(.*)[p]有人能提供帮助吗??