unix - Displaying images stored in Openshift server -
i want display image stored in openshift server using img tag. now, have created folder in $openshift_data_dir in server. after going directory, pwd complete path :
/var/lib/openshift/52002234335h7b0000163/app-root/data/pamphlets
so, specified path in img tag
<img src="/var/lib/openshift/52002234335h7b0000163/approot/data/pamphlets/1.png" class="map" alt="image not available"
i tried out
file:///var/lib/openshift/52002234335h7b0000163/app-root/data/pamphlets/1.png
but nothing working. can point me out mistake making?
i asume developing web application. in case missing fact should use path defined on web server's documentroot. should use root web-accessible files. so, instance /pamphlets/ path if webserver's documentroot points $openshift_data_dir. if using 1 of preloaded cartridges make sure happens first.
Comments
Post a Comment