-
1. Re: How to redirect a URL to Application URL in WildFly without using default-web-module?
ctomc May 9, 2017 8:52 AM (in response to gipathak)add jboss-web.xml to your WEB-INF
with content along this lines:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_10_0.xsd"
version="10.0">
<context-root>/</context-root>
<!--virtual-host>context-host</virtual-host -->>
</jboss-web>
-
2. Re: How to redirect a URL to Application URL in WildFly without using default-web-module?
gipathak May 10, 2017 8:53 AM (in response to ctomc)Hi Tomaz , I have tried above mentioned steps , I am able to access to myApp using this https://someip/myApp/ but not able lo login if i try giving this url https://someip/. I want myApp access should work in both the scenario , can you please direct me like if any user logs in using https://someip it should redirect to https://someip/myApp. Where someip is the ip of application server where myApp is deployed. Note: Using jboss7 I am able to do this for refrence you can refer my question https://developer.jboss.org/thread/274843 but my requiremment is to make it work in wildfly 10.