Yes, your path is correct. If you have a domain named "example15" with a user name of "examp5" on a vps numbered 2222, then the path would be:
The secure path would be:
You don't need to use "public_html" as the temporary URL is the same as using the primary domain name (where public_html) is not stated. I hope this helps to provide an answer for you. If you need any further assistance, please provide us more information on the site and any error.