What is the meaning of Fore-and-aft-rigged?

having its main sails rigged onto spars or stays parallel to the keel

rigged in this manner

Source: wiktionary.org