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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -