How to set root path

Hi everyone, Im newbie. I want to know any way to setup a root path.
Example
Setup a path as root: 127.0.0.1:1234/root
then I can connect to 127.0.0.0:1234/root/login and 127.0.0.0:1234/root/command with only 1 path like this
Can you give me an answer or just 1 keyword to search?
Thanks