html - Failing to retrieve images depending on if localhost or remote server -
i have odd problem depending on whether i'm pointed localhost, or remote server.
when refer localhost, application (a map) works expect, on ff, chrome, , ie10. but, when deploy application shared dev server, lose images on ff , ie10, not chrome.
the source html trivial:
just relative path, nothing fancy.
firebug (edited) shows following in requests.
https://cantsaylocalhost.boisestate.edu/campusmap /campusmap/content/images/generalmarker2.png http/1.1
https://dev-web.boisestate.edu/campusmap /content/images/generalmarker2.png http/1.1
notice localhost path starts /campusmap root directory, while dev-web path different: starts non-existent root /content.
what gives? there i've never learned how or if browsers deal relative paths on localhosts vs remote? i'd thought different servers (iis), bur differences should in responses, not requests.
the test matrix looks chrome ie10 firefox firebug source localhost ok ok ok /campusmap/content/images/icon dev-web ok missing missing /content/images/icon
the raw requests are:
browser localhost
get /campusmap/content/images/generalmarker2.png http/1.1 host: localhost user-agent: mozilla/5.0 (windows nt 6.1; wow64; rv:20.0) gecko/20100101 firefox/20.0 firephp/0.7.2 accept: image/png,image/;q=0.8,/*;q=0.5 accept-language: en-us,en;q=0.5 accept-encoding: gzip, deflate referer:
browser remote
get /content/images/generalmarker2.png http/1.1 host: dev-web.boisestate.edu user-agent: mozilla/5.0 (windows nt 6.1; wow64; rv:20.0) gecko/20100101 firefox/20.0 firephp/0.7.2 accept: image/png,image/;q=0.8,/*;q=0.5 accept-language: en-us,en;q=0.5 accept-encoding: gzip, deflate referer: https://dev-web.boisestate.edu/campusmap cookie: __unam=95816f3-13cdea87ead-12f69a5e-34; __utma=124011033.771840282.1365534309.1367510743.1367517351.11; __utmz=124011033.1365534309.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=124011033 x-insight: activate connection: keep-alive
ideas? i'm stuck, naturally.
Comments
Post a Comment