I'm developing a web-application with tomcat. In the dev env, the application's root address is
localhost:8080/myapp/. In production, the root address is
When I use a relative link in my website, e.g.
/home, it works fine in production, but the address that I arrive at in my dev is
localhost:8080/home, which strips the application's root. Obviously, I cannot just use
home, as it would work the first time, but would just concatenate to the end of the address string. I also cannot use the hosts file, and I have no idea how to create an alias or just redirect traffic from some alias to
This seems like a very common issue. Thanks in advance!