Press insert on your keyboard to go into pivot mode. You can now move your pivot to where you want. If you want to snap it to an edge, hold down C and middle click on your edge, you may need to move the mouse slightly holding down the middle mouse button.