How was the Earth to sun distance measured. How do we know how far from the Earth the Sun actually is.
There are a bunch of ways. The simplest is triangulation.
Consider a transit of Mercury or Venus, when the planet gets between the Earth and the Sun. If you observe the planet's path across the face Sun from two different places, measuring the chords across the Sun's disk and the timings, using no more than trigonometry, you can get an accurate distance to the Sun.
(It's worth noting that it is easy to measure the distance to, say, Mars in terms of the ratio of the distance to Mars compared with the Earth-Sun distance, than it is to measure the Earth-Sun distance in miles. Hence the Astronomical Unit. We accurately knew many astronomical distances in AU before we knew the length of the AU equally accurately.)