Will a STI exost fit on my 97 legacy l wagon?
Not without modification, no.
They make exhaust components for your car that are specifically for it and cost less, look at them.
Search Subaru Legacy Questions
Subaru Legacy Experts