Thank you for commenting. Yes, I know I can configure that in my hosts file.
My problem or issue is that having this url:
localhost:8081/projects/my_project
By modifying the hosts file, my url looks like this:
my_venv.com:8081/projects/my_project
When I need my url to be like this:
my_env.com
And this url refers to the complete path of my project: /projects/my_project, without specifying the port or the folder tree.