Grails URL's with Tomcat/Apache ProxyPass
Posted
by intargc
on Stack Overflow
See other posts from Stack Overflow
or by intargc
Published on 2010-03-15T00:52:32Z
Indexed on
2010/03/15
0:59 UTC
Read the original article
Hit count: 497
Grails tends to write out the URL for everything that uses its tags as /appName/whatever. For instance, if I use the tag:
<g:javascript library="jquery"/>
the resulting tag is
<script src="/appName/jquery/jquery.js"></script>
This causes an issue with using ProxyPass with Apache/Tomcat. All of my CSS, JS, Images and links have that /appName prefixed to them.
Is there a way to work around this with ProxyPass or possibly a way for Grails to not prefix the appName to the front of all of my URL's?
© Stack Overflow or respective owner