Application starts with Redirect Loop WildFly8 error

I tried to migrate the server from Jboss 4.2.2 to WildFly-8.2.0. Facing some problems when deploying a war file. War is unfolding, but rewriting URLs creates problems.

In 4.2.2, the same thing was written in a file called rewrite.properties aside from the localhost folder.

 RewriteCond %{REQUEST_URI} !^(.*)[.]([a-zA-Z]+)$ RewriteRule ^/home/(.*)$ /home/index.php?q=$1 [L,QSA] 

As with some docs, I'm sure we can create undertow-handlers.conf in my ROOT.war / WEB-INF / folder and

how can i put above in regex [] format in 'underow-handlers.conf'

tried it

regex['/home/(.*)$'] -> rewrite['/home/index.php']

The URL seems to load correctly and redirect to the main page. But the application works with a Redirect Loop error. I had in mind this and. It seems we can configure the http connector to prevent the redirect loop as follows:

 <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" proxy-name="${env.OPENSHIFT_GEAR_DNS}" proxy-port="443" secure="true"/> 

But I do not know how to configure this in WildFly 8. Secondly, if this problem occurs due to the lack of a RewriteCond in the new regular expression in `underow-handlers.conf '?

 ERROR: [io.undertow.request] (default task-20) UT005023: Exception handling request to /home/index.php?q=: com.caucho.quercus.QuercusModuleException: java.io.IOException: 

existing connection was forcibly closed by the remote host

Please help me solve these problems.

My web.xml:

 <servlet-mapping> <servlet-name>Quercus Servlet</servlet-name> <url-pattern>*.php</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.php</welcome-file> </welcome-file-list> 
+8
jboss wildfly-8
source share
1 answer

A tango equivalent to rewriting conditions would be:

 regex['/home/(.*)$'] -> rewrite['/home/index.php?q=${1}'] 

And I am sure that the exception is not related to the regular expression itself.

+4
source share

All Articles