Texture on Each Side
To avoid distorted textures and have better control you can use a UV map.
Then you can rotate different parts depending on your needs.


Create a UV map for your mesh
Connect it using the Texture Coordinate node
Manipulate it either directly or using the Mapping Node.


Unwrap your Mesh. You can also move individual parts of your UV map.



Connect your UV map and use Mapping node to manipulate it