0

By default, applications in wildfly are deployed to localhost:8080/app. How to deploy application on dedicated port, i.e. open it on localhost:8282 without application name ending?

I need to change the port for certain application, not the default port.

cadmy
  • 515
  • 12
  • 32
  • Possible duplicate of [How to change default port 8080 in WildFly 8.2 release](http://stackoverflow.com/questions/27922219/how-to-change-default-port-8080-in-wildfly-8-2-release) – James Jun 21 '16 at 13:56
  • Not, actually. That question is about changing default port and I'm asking how to change the port for the certain application only – cadmy Jun 21 '16 at 14:13
  • I am not aware that it is possible, setting the port for only one app. I would suggest using a proxy for that purpose. With that, of course, you can also remove/change the application ending. – DXTR66 Jun 21 '16 at 15:02

1 Answers1

0

I have not tried this, but AFAICT it should be possible to:

Once you have done this, you have effectively just turned your Wildfly instance into an overly complex application server and reverse proxy in one. Ultimately however, the app in question would still be running on both ports, but you redirect the traffic using the proxy the way you would like.

The same proxy configuration in an Apache (ref: https://httpd.apache.org/docs/current/mod/mod_proxy.html#forwardreverse or https://www.leaseweb.com/labs/2014/12/tutorial-apache-2-4-transparent-reverse-proxy/) or NGINX (ref: https://www.nginx.com/resources/admin-guide/reverse-proxy/) would be IMHO less complex and better tested in countless production scenarios.

sprockets
  • 981
  • 1
  • 6
  • 16