I imagine that you would change the help desk url Admin panel -> Settings to the one that you are using for the mask, and enable the mask. If that doesn't work... then I don't know. This seems to be more of a webserver question than a how to configure osTicket question.