By default Drupal provides and option to set visibility of block based on path, but quite often it is not what actually want.
To solve this issue we can use a small, but a very useful module Route condition. This module provides condition plugin, which will display the block based on routes. Basically it works the same way as Pages condition plugin. So, I believe you will not find any issues configure it.