I think the Union would probably just move the capital to New York or Pennsylvania (with Philadelphia or NYC as the temporary capital). I don't think the Western states would be as pissy as the Southern states were when a location for the capital was originally being decided on.
As for the Confederacy, what about Montgomery, the original capital before May of 1861?
As for the Confederacy, what about Montgomery, the original capital before May of 1861?