How to create a custom url by pixel stream config files?

I am not a front-end programmer, but I need to convert the standard pixel stream port into a custom URL through a configuration file.
( e.g http://localhost:80 to http://test/pixelstream01 )

Simple port change is not enough as I explained in my post. The solution I’ve provided works (I used it in prod), if you need a consultation, feel free to DM me.