Set Virtual Host MIME Types with wsadmin
January 5th, 2012
Today one of my customers had the need to add new MIME types to a virtual host because some file types were not recognized correctly by IE8. I looked around and there was nothing in wsadminlib for doing this, so I came up with my own setVirtualHostMimeTypes.py.
I’ve thought about a more open sharing of sample scripts for some time, given that our release process for wsadminlib isn’t very agile, but it never really materialized. Maybe the creation of this mercurial repository will motivate me to share a few more. It’s kind of a waste to have various customers reinvent the wheel over and over again and those sample scripts are not exactly intellectual capital; they just accumulate on my hard drive instead of helping others to use our products more efficiently. Enjoy!