Prefixing URL's

David J. david at styleflare.com
Tue Dec 28 08:12:49 MSK 2010


I have an app that uses relative URLs

ie: /media/assets/css/style.css

in my server config I have

location /app {

     #config stuff here.
}

When I go to "/app" from a browser the urls are not prefixed with "/app" 
they stay the same ie: "/media/assets/css/style.css"

But because I mounted the "/app" rather than the root "/" the urls are 
no longer valid.

"/media/assets/css/style.css" should be "/app/media/assets/css/style.css"

What options are available to fix this?


Thanks in advance for any guidance.






More information about the nginx mailing list