0

I need to forward all requests to an web application to an external URL. The webapp is deployed from a WAR file, running on WildFly 8.1, deployed as a standalone module.

What do I need to change in the standalone.xml ? Tried creating new default-server configuration, but it is still trying to hit the application. The log file has 'New missing/unsatisfied dependencies' error, service jboss.naming.context.java.app.myApp (missing) dependents:...

jprusakova
  • 1,557
  • 3
  • 19
  • 31

1 Answers1

0

You can try to configure Undertow as reverse proxy. See e.g: http://www.mastertheboss.com/jboss-server/wildfly-8/configuring-a-reverse-proxy-with-undertow

<subsystem xmlns="urn:jboss:domain:undertow:1.1">
   <handlers>
    . . . .
    <reverse-proxy name="myproxy">
         <host name="http://192.168.0.2/myapp-develop"/>
    </reverse-proxy>
    </handlers>
</subsystem>

and

<host name="default-host" alias="localhost">
    . . .
   <location name="/myapp-stable" handler="myproxy"/>
</host>
Erhard Siegl
  • 557
  • 2
  • 8