Jump to content

[Solved] Setup an HTTP Proxy redirect


tadeubas

Recommended Posts

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
 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...