Reputation: 11691
Is there any complete list of variables supported in WildFly web configuration expressions (eg rewrite filters)? Like %U, %h, %p...
<filters>
<rewrite name="http-to-https" redirect="true" target="https://myhostname:8443%U"/>
</filters>
<server name="default-server">
<host name="default-host" alias="localhost">
...
<filter-ref name="http-to-https" predicate="equals(%p,8080)"/>
Upvotes: 0
Views: 4123
Reputation: 3517
Current WildFly (15) uses Undertow 2.0 so take a look at Undertow documentation on predicates: http://undertow.io/undertow-docs/undertow-docs-2.0.0/predicates-attributes-handlers.html
Upvotes: 2
Reputation: 1566
These are the attributes used by AccessLogHandler.java
for log.
In addition, the caller can specify one of the following aliases for commonly utilized patterns:
%h %l %u %t "%r" %s %b
%h %l %u %t "%r" %s %b "%{i,Referer}" "%{i,User-Agent}"
There is also support to write information from the cookie, incoming
header, or the session
It is modeled after the apache syntax:
%{i,xxx}
for incoming headers
%{o,xxx}
for outgoing response headers
%{c,xxx}
for a specific cookie
%{r,xxx}
xxx is an attribute in the ServletRequest
%{s,xxx}
xxx is an attribute in the HttpSession
Upvotes: 1