Grails static resource unacessible from root -
i have file named
favicon.ico
in web-app folder (grails 2.2.1).
my app configured run root app /
if open url
http://mydomain/favicon.ico i got not 404 not found.
if try move file in subfolder works. example if move to
web-app/test/favicon.ico and open
http://mydomain/favicon.ico the file correctly served.
the problem same if run app grails run-app
you can configure in config.groovy process resources in / this: grails.resources.adhoc.patterns = ['/*','/images/*', '/css/*', '/js/*', '/plugins/*']
http://mydomain/favicon.ico
will 302 to: http://mydomain/static/favicon.ico
that should work, think better move ico /images
Comments
Post a Comment