Hello. I need to move a python application (mod_wsgi 3.3/Python 2.7) to subfolder on a specific domine for testing proposes. Eg.: www.site.com will be www.site.com/test When I did this, all styles, images and media are not shown as it is pointing to the root location (www.site.com/). My image are coded like this: "src="/img/footer.jpg"" For www.site.com it is work well, but in case of www.site.com/test I should add "/test" to all my images source paths. May by I do not understand well something, but in case of a simple html it should work well, as the path is relative. So my question is, what should I add to my application variables, or what to change? Thank You in advance. Best regards. asked 18 Jan '12, 09:18 Andreikod |
We always recommend that you serve static media from a separate static-only app (or from a static-only symlink app). For example, if your images are in
In this configuration, your images will be served directly from our front-end Nginx server, which means your back-end Apache will serve your application faster while using less memory. Hope that helps! answered 18 Jan '12, 12:22 seanf 1
Ok, I will try to solve this issue in this way. Thank You seanf! BR.
(18 Jan '12, 14:42)
Andreikod
|