More can be written, but you might be interested in "What was the rationale for moving the Confederate capital from Montgomery, AL to Richmond, VA during the US Civil War?" by /u/kieslowskifan
For more discussion of the choise and its implications, you can see "Did the Confederacy weaken themselves by setting their capital in Richmond, so close to the enemy?" by /u/Rittermeister and /u/dandan_noodles
This is not to discourage discussion. Further questions, data, and debate are always welcome.