Bass amps are recorded using low-end dynamic mics. These mics are designed to handle the low frequencies coming from the cabinet.
An upright bass is more complicated. How present will it be in the mix? How much detail do you need to capture? I will usually use a combination of a low-end dynamic mic and a large diaphragm condenser to see which tone I like best.