Hi!
I created a custom object for a PRTG-Map. It does need some js, png, and swf files. Where to put these? I already tried a new folder below /public/ - but it seems like the webserver does not allow subfolders there - also it delivers only specific file types (it looks to me like for example htm files get delivered, but html aswell as swf etc. not).
Thanks for any advice! Rolf
Article Comments
Hi Erhard
thanks for the answer!
Hmmm.... The Custom Map Objects belong to /webroot/mapobjects? not /webroot/public/mapobjects? This folder has no function for me... And if I put the additional files directly to /webroot/mapobjects they also don't get served by the webserver... Neither by http://IP/myCustomFile.swf nor http://IP/webobjects/myCustomFile.swf
Is there any configuration for the webserver that defines what filetypes are getting processed by the webserver? Or if directories are allowed somewhere like in /webroot/public/?
Regards Rolf
Oct, 2016 - Permalink
Hi Rolf,
/webroot/mapobjects should be fine. Try creating a htm-file as "wrapper" that holds links to the files you require.
Kind regards,
Erhard
Oct, 2016 - Permalink
Hi Rolf,
Try putting it into /webroot/public/mapobjects as htm and place the files additionally needed files also there. Inside the htm make sure to have the links point to the correct location. Since those links should be "relative", it should work when just pointing to the filename and it will look for it inside the same folder.
Kind regards,
Erhard
Oct, 2016 - Permalink