Public access link generation

1. What is the problem? Be very detailed.
Does anybody know that in which file/script generates the public links or submission link ? so we can change it accordingly.

2. What app or server are you using and on what device and operating system? Include version numbers.
AWS EC2
3. What you have you tried to fix the problem?
I don't get it
4. What steps can we take to reproduce the problem?

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.