tadeubas Posted March 5, 2021 Share Posted March 5, 2021 Hi, my java website is here: http://tadeubas.heliohost.us/holdinvest-0.1/ But the framework identifies the host under an alias: tadeubas_ and the relative links are created pointing to tadeubas_holdinvest-0.1 There is a way to create a HTTP Proxy redirect on NGINX or TOMCAT to point tadeubas.heliohost.us/tadeubas_* to tadeubas.heliohost.us/* ? Best regards,Tadeu Quote Link to comment Share on other sites More sharing options...
wolstech Posted March 5, 2021 Share Posted March 5, 2021 Long story short, WAR files hate being renamed. The server renames WAR files if the username_ isn't already in front when you deploy it, and the result is exactly what you're describing. The trick to fixing this is to recompile the WAR with the username already included before you deploy it (i.e. when you compile it, call it tadeubas_holdinvest-0.1.war, not holdinvest-0.1.war). The server will see the username_ in front and not rename it, and the application will know to expect the tadeubas_holdinvest-0.1 path because it was built that way. Quote Link to comment Share on other sites More sharing options...
tadeubas Posted March 5, 2021 Author Share Posted March 5, 2021 Thanks a lot for the quick response! I will try this now. Many thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.