In more touristy areas (excluding mosques) such as Mount Nebo, Wadi Rum, and Petra, I dressed a bit more liberally (see photos below) and felt entirely comfortable. Our tour guide assured us wearing shorts at these places is totally acceptable and common.