Preheat oven to 350ºF.
Place coconut in a 12-inch-deep, steep-sided cast-iron skillet in an even layer and bake for 10 minutes, stirring occasionally, until browned. Remove from oven and set aside.
In a large mixing bowl, combine cornmeal, flour, baking powder, 1½ cups brown sugar, and browned coconut, whisking to break up any lumps.
In a separate bowl or liquid measuring cup, combine milk, coconut milk, oil, rum, vanilla, and eggs, whisking to mix.
Pour wet ingredients into dry, whisking until smooth. Set aside while you prepare the pineapple topping.
Wipe out the skillet and place on stove top over medium-high heat. Add butter and ¾ cup brown sugar, stirring occasionally to caramelize, about 5–7 minutes.
Carefully place pineapple rings evenly in the pan and cook for 1 minute more. Remove from heat.
Pour batter into skillet, smoothing the top with a spatula or the back of a wooden spoon.
Place skillet in the oven, with a baking pan on the rack beneath to catch any drips, and bake for 40–45 minutes or until a toothpick inserted into the cake comes out clean.
Remove skillet from oven and place on a wire rack. Let cake cool for 15 minutes before inverting onto a serving plate. Spoon any topping that remains in the pan over the cake. Serve warm with a scoop of vanilla ice cream.
