What can I do about back upper thigh pain?

Stretch. Stretching may be the best way to diminish upper thigh pain. There are several exercises for this. They must be done regularly for several days or weeks. Check out the internet. Also, try massage and pain- relieving gels. Check with your doctor or physical therapist if these do not help.