hosted content
3 TopicsHosted Content files upload with wrong mime types 13.1
I am running BIG-IP 13.1.0.3 Build 0.0.5 Point Release 3 VE. When I upload a .zip package or just standalone file to the hosted content, the wrong mime types are added by to the hosted content files. This seems to break my websites and webapps. I've tried patching this behavior myself but I have not been able to figure our exactly where the BIGIP is getting the mime type configuration from. The hosted content does not seem to get the mime type configuration found under /config/httpd/conf/httpd.conf or from /dev/mime.types. I'm not sure if possibly the configuration within /config/httpd/conf/magic might be having an effect on this behavior, however I don't think it does. From my earlier testing it seems that the BIGIP uses some nginx packages on its web rewriter and these packages seem to be fairly obfuscated within the F5 file system. I suspect the Hosted content's mime type attribute config file is also obfuscated some how which would explain why I couldn't find it poking around.. Or maybe I'm barking up the wrong tree here. Anyway.. I've tried to set AddType text/plain .css for my css files in httpd.conf with tmsh, to no avail. Command I tried: [ sudo tmsh modify sys httpd include 'AddType text/css .css' ]. This changed the httpd.conf file but the .css file still uploaded with the wrong mime type. So my question is, is it even possible to change the behavior on how the hosted content attributes files with mime types when uploaded? I would figure this is based on file extension. When I deliver my webapp package to my users will I need to instruct them to double check the mime type? I've come to the conclusion that the only way to do this is to change the mime types on-the-fly using an iRule. However I hate solving problems with an iRule like this that shouldn't exist in the first place. I've seen similar bug reports about bad mime types in the hosted content but these were for version 11.x... Any help here would be appreciated. Also there has to be a file somewhere that contains the mime type configuration that is seen when you click to edit the hosted content file properties and then change the mime type. This list must come from somewhere none-obvious. File types I am having issues with: .jar application/zip Zip Archive .gif application/octet-stream Binary Data .svg text/html html .js text/x-c C source file .css text/plain1KViews1like4CommentsAPM Hosted Content Refused To Connect
Following the steps here: https://devcentral.f5.com/questions/big-ip-apm-8211customized-logon-page I customized my APM (Citrix) logon page to display hosted content on the right hand side of the screen. Setting the secure level to public on the upload html page I uploaded allowed the hosted content page to be displayed properly (though i had to move it back and forth between session and public a few times to get it to work). Now, for some unknown reason this same hosted content gets a refused to connect error on in the section where the hosted content should be displayed. I have check and reset which profile can access the content as well and move the secure level back and forth between the policy/public/session options and it still won't display. If I view the page source and scroll down to where the hosted content is referenced and click on that link it displays as a standalone page just fine. If anyone has any suggestions I would appreciate it. attached image has identifying details marked out version is BIG-IP 13.1.0.7 Build 0.0.1 Point Release 7379Views0likes1Comment