Jump to content

Recommended Posts

Posted

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
 

 

 

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...